Kinoko
A reimplementation of Mario Kart Wii's physics engine in C++
Toggle main menu visibility
Loading...
Searching...
No Matches
ObjectVolcanoBallLauncher.hh
1
#pragma once
2
3
#include "game/field/obj/ObjectCollidable.hh"
4
5
namespace
Kinoko::Field
{
6
7
class
ObjectVolcanoBall
;
8
10
class
ObjectVolcanoBallLauncher final :
public
ObjectCollidable {
11
public
:
12
ObjectVolcanoBallLauncher(
const
System::MapdataGeoObj
¶ms);
13
~ObjectVolcanoBallLauncher()
override
;
14
15
void
init()
override
;
16
void
calc()
override
;
17
19
[[nodiscard]]
LoadFlags
loadFlags
()
const override
{
20
return
LoadFlags
(
eLoadFlags::Calc
);
21
};
22
24
void
loadGraphics()
override
{}
25
27
void
createCollision()
override
{}
28
30
void
loadRail()
override
{}
31
32
private
:
33
owning_span<ObjectVolcanoBall *> m_balls;
34
const
f32 m_initDelay;
35
const
f32 m_cycleDuration;
36
u32 m_currBallIdx;
37
bool
m_active
;
38
};
39
40
}
// namespace Kinoko::Field
Kinoko::Field::ObjectBase::LoadFlags
EGG::TBitFlag< u8, eLoadFlags > LoadFlags
A bitfield of eLoadFlags that represents the update requirements of the object.
Definition
ObjectBase.hh:36
Kinoko::Field::ObjectBase::eLoadFlags::Calc
@ Calc
The state of the object should be recalculated every frame.
Definition
ObjectBase.hh:30
Kinoko::Field::ObjectVolcanoBallLauncher::m_active
bool m_active
False when the volcano is dormant, true after m_initDelay.
Definition
ObjectVolcanoBallLauncher.hh:37
Kinoko::Field::ObjectVolcanoBallLauncher::loadFlags
LoadFlags loadFlags() const override
Returns a bitmask indicating which lifecycle hooks should be called for the object.
Definition
ObjectVolcanoBallLauncher.hh:19
Kinoko::Field::ObjectVolcanoBall
Represents a fireball that is launched from the volcanoes on Grumble Volcano.
Definition
ObjectVolcanoBall.hh:9
Kinoko::System::MapdataGeoObj
Definition
MapdataGeoObj.hh:9
Kinoko::Field
Pertains to collision.
Definition
BoxColManager.cc:10
game
field
obj
ObjectVolcanoBallLauncher.hh
Made by
Malleo
. Logo by
vabold
. Website generated by
Doxygen
1.17.0