Definition at line 9 of file ObjectObakeBlock.hh.
Public Types | |
enum class | FallState { Rest = 0 , Falling = 1 , FinishedFalling = 2 } |
![]() | |
enum class | eFlags { Position = 0 , Rotation = 1 , Matrix = 2 , Scale = 3 } |
typedef EGG::TBitFlag< u16, eFlags > | Flags |
Public Member Functions | |
ObjectObakeBlock (const System::MapdataGeoObj ¶ms) | |
void | calc () override |
void | load () override |
void | createCollision () override |
void | calcCollisionTransform () override |
Setters | |
void | setFallState (FallState state) |
Getters | |
FallState | fallState () const |
s32 | fallFrame () const |
![]() | |
ObjectBase (const System::MapdataGeoObj ¶ms) | |
ObjectBase (const char *name, const EGG::Vector3f &pos, const EGG::Vector3f &rot, const EGG::Vector3f &scale) | |
virtual void | init () |
virtual void | calcModel () |
virtual const char * | getResources () const |
virtual void | loadGraphics () |
virtual void | loadAnims () |
virtual void | loadRail () |
virtual const char * | getName () const |
virtual u32 | loadFlags () const |
virtual const char * | getKclName () const |
virtual const EGG::Vector3f & | getPosition () const |
virtual f32 | getCollisionRadius () const |
virtual ObjectId | id () const |
const EGG::Vector3f & | pos () const |
void | setPos (const EGG::Vector3f &pos) |
Private Attributes | |
const EGG::Vector3f | m_initialPos |
Position is computed relative to initialPos. | |
FallState | m_fallState |
s32 | m_framesFallen |
How long the block has been falling for, capped at 256. | |
EGG::Vector3f | m_fallVel |
EGG::Vector3f | m_fallAngVel |
EGG::BoundBox3f | m_bbox |
s32 | m_fallFrame |
Frame the block starts falling, or 0 if it never falls. | |
|
strong |
Definition at line 11 of file ObjectObakeBlock.hh.
|
0x8080AD20 |
Definition at line 6 of file ObjectObakeBlock.cc.
|
overridevirtual0x8080BC64 |
Reimplemented from Field::ObjectBase.
Definition at line 47 of file ObjectObakeBlock.cc.
|
inlineoverridevirtual0x8080BDD4 |
Implements Field::ObjectBase.
Definition at line 29 of file ObjectObakeBlock.hh.
|
inlineoverridevirtual0x8080BDDC |
Implements Field::ObjectBase.
Definition at line 26 of file ObjectObakeBlock.hh.
|
inlinenodiscard |
Definition at line 42 of file ObjectObakeBlock.hh.
|
inlinenodiscard |
Definition at line 38 of file ObjectObakeBlock.hh.
|
inlineoverridevirtual0x8080BDE0 |
Implements Field::ObjectBase.
Definition at line 23 of file ObjectObakeBlock.hh.
|
inline |
Definition at line 32 of file ObjectObakeBlock.hh.
|
private |
Definition at line 53 of file ObjectObakeBlock.hh.
|
private |
Definition at line 52 of file ObjectObakeBlock.hh.
|
private |
Frame the block starts falling, or 0 if it never falls.
Definition at line 54 of file ObjectObakeBlock.hh.
|
private |
Definition at line 49 of file ObjectObakeBlock.hh.
|
private |
Definition at line 51 of file ObjectObakeBlock.hh.
|
private |
How long the block has been falling for, capped at 256.
Definition at line 50 of file ObjectObakeBlock.hh.
|
private |
Position is computed relative to initialPos.
Definition at line 48 of file ObjectObakeBlock.hh.