Definition at line 9 of file ObjectObakeBlock.hh.
Public Types | |
enum class | FallState { Rest = 0 , Falling = 1 , FinishedFalling = 2 } |
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) | |
virtual void | init () |
virtual void | calcModel () |
virtual const char * | getResources () const |
virtual void | loadGraphics () |
virtual void | loadAnims () |
virtual void | loadRail () |
virtual u32 | loadFlags () const |
virtual const char * | getKclName () const |
virtual const EGG::Vector3f & | getPosition () const |
virtual f32 | getCollisionRadius () const |
ObjectId | id () 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. | |
Additional Inherited Members | |
![]() | |
void | calcTransform () |
void | linkAnims (const std::span< const char * > &names, const std::span< Render::AnmType > types) |
void | setMatrixTangentTo (const EGG::Vector3f &up, const EGG::Vector3f &tangent) |
![]() | |
static EGG::Vector3f | RotateAxisAngle (f32 angle, const EGG::Vector3f &axis, const EGG::Vector3f &v1) |
static void | SetRotTangentHorizontal (EGG::Matrix34f &mat, const EGG::Vector3f &up, const EGG::Vector3f &tangent) |
static EGG::Vector3f | Interpolate (f32 t, const EGG::Vector3f &v0, const EGG::Vector3f &v1) |
![]() | |
Render::DrawMdl * | m_drawMdl |
Abstract::g3d::ResFile * | m_resFile |
ObjectId | m_id |
RailInterpolator * | m_railInterpolator |
BoxColUnit * | m_boxColUnit |
u16 | m_flags |
EGG::Vector3f | m_pos |
EGG::Vector3f | m_rot |
EGG::Vector3f | m_scale |
EGG::Matrix34f | m_transform |
const System::MapdataGeoObj * | m_mapObj |
|
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.