Kinoko
A reimplementation of Mario Kart Wii's physics engine in C++
Toggle main menu visibility
Loading...
Searching...
No Matches
ObjectPakkunF.hh
1
#pragma once
2
3
#include "game/field/obj/ObjectCollidable.hh"
4
5
namespace
Kinoko::Field
{
6
9
class
ObjectPakkunF final :
public
ObjectCollidable {
10
public
:
11
ObjectPakkunF(
const
System::MapdataGeoObj
¶ms);
12
~ObjectPakkunF()
override
;
13
14
void
init()
override
;
15
void
calc()
override
;
16
18
[[nodiscard]] u32 loadFlags()
const override
{
19
return
1;
20
}
21
22
void
loadAnims()
override
;
23
void
calcCollisionTransform()
override
;
24
26
[[nodiscard]] f32
getCollisionRadius
()
const override
{
27
return
1000.0f;
28
}
29
30
private
:
31
enum class
State {
32
Wait = 0,
33
Attack = 1,
34
};
35
36
void
calcWait();
37
void
calcAttack();
38
void
enterAttack
();
39
40
State m_state;
41
s32
m_waitFrames
;
42
s32
m_attackFrames
;
43
u32 m_currAttackFrame;
44
47
const
u32
m_waitDuration
;
48
};
49
50
}
// namespace Kinoko::Field
Kinoko::Field::ObjectPakkunF::enterAttack
void enterAttack()
Definition
ObjectPakkunF.cc:112
Kinoko::Field::ObjectPakkunF::m_waitFrames
s32 m_waitFrames
How long until the piranha starts chomping.
Definition
ObjectPakkunF.hh:41
Kinoko::Field::ObjectPakkunF::getCollisionRadius
f32 getCollisionRadius() const override
Finds the radius that fits fully in a BoxColUnit.
Definition
ObjectPakkunF.hh:26
Kinoko::Field::ObjectPakkunF::m_waitDuration
const u32 m_waitDuration
How long the piranhas has been attacking for.
Definition
ObjectPakkunF.hh:47
Kinoko::Field::ObjectPakkunF::m_attackFrames
s32 m_attackFrames
How long until the piranha stops chomping.
Definition
ObjectPakkunF.hh:42
Kinoko::System::MapdataGeoObj
Definition
MapdataGeoObj.hh:9
Kinoko::Field
Pertains to collision.
Definition
BoxColManager.cc:10
game
field
obj
ObjectPakkunF.hh
Made by
Malleo
. Logo by
vabold
. Website generated by
Doxygen
1.17.0