Definition at line 16 of file ObjectBase.hh.
Public Types | |
enum class | eFlags { Position = 0 , Rotation = 1 , Matrix = 2 , Scale = 3 } |
typedef EGG::TBitFlag< u16, eFlags > | Flags |
Public Member Functions | |
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 | calc () |
virtual void | calcModel () |
virtual void | load ()=0 |
virtual const char * | getResources () const |
virtual void | loadGraphics () |
virtual void | loadAnims () |
virtual void | createCollision ()=0 |
virtual void | loadRail () |
virtual void | calcCollisionTransform ()=0 |
virtual const char * | getName () const |
virtual u32 | loadFlags () const |
virtual const char * | getKclName () const |
virtual void | resize (f32 radius, f32 maxSpeed) |
virtual void | unregisterCollision () |
virtual void | disableCollision () const |
virtual void | enableCollision () const |
virtual const BoxColUnit * | getUnit () const |
const RailInterpolator * | railInterpolator () 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) |
void | setScale (const EGG::Vector3f &scale) |
void | setTransform (const EGG::Matrix34f &mat) |
const EGG::Vector3f & | scale () const |
Protected Member Functions | |
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) |
void | setMatrixFromOrthonormalBasisAndPos (const EGG::Vector3f &v) |
Static Protected Member Functions | |
static f32 | CheckPointAgainstLineSegment (const EGG::Vector3f &point, const EGG::Vector3f &a, const EGG::Vector3f &b) |
Calculates on what side of line segment ab point lies. | |
static EGG::Vector3f | RotateXZByYaw (f32 angle, const EGG::Vector3f &v) |
Rotates a vector around the Y-axis and returns the XZ-plane portion of the vector. | |
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::Matrix34f | OrthonormalBasis (const EGG::Vector3f &v) |
static EGG::Matrix34f | RailOrthonormalBasis (const RailInterpolator &railInterpolator) |
static EGG::Vector3f | Interpolate (f32 t, const EGG::Vector3f &v0, const EGG::Vector3f &v1) |
Protected Attributes | |
Render::DrawMdl * | m_drawMdl |
Abstract::g3d::ResFile * | m_resFile |
ObjectId | m_id |
RailInterpolator * | m_railInterpolator |
BoxColUnit * | m_boxColUnit |
Flags | m_flags |
EGG::Vector3f | m_pos |
EGG::Vector3f | m_rot |
EGG::Vector3f | m_scale |
EGG::Matrix34f | m_transform |
const System::MapdataGeoObj * | m_mapObj |
EGG::TBitFlag<u16, eFlags> Field::ObjectBase::Flags |
Definition at line 24 of file ObjectBase.hh.
|
strong |
Definition at line 18 of file ObjectBase.hh.
|
0x8081F828 |
Definition at line 16 of file ObjectBase.cc.
|
0x8081FB04 |
Definition at line 24 of file ObjectBase.cc.
|
virtual0x8067E3C4 |
Definition at line 33 of file ObjectBase.cc.
|
inlinevirtual |
Reimplemented in Field::ObjectCowHerd.
Definition at line 32 of file ObjectBase.hh.
|
virtual0x808217B8 |
Definition at line 39 of file ObjectBase.cc.
|
protected0x80821640 |
Definition at line 108 of file ObjectBase.cc.
|
staticnodiscardprotected0x806B38A8 |
Calculates on what side of line segment ab point lies.
Definition at line 148 of file ObjectBase.cc.
|
pure virtual |
Implemented in Field::ObjectBirdLeader, and Field::ObjectEscalatorGroup.
|
inlinevirtual0x80821DEC |
Definition at line 63 of file ObjectBase.hh.
|
inlinevirtual0x80821E00 |
Definition at line 68 of file ObjectBase.hh.
|
inlinenodiscardvirtual0x8080BDC0 |
Reimplemented in Field::ObjectCollidable, and Field::ObjectPress.
Definition at line 87 of file ObjectBase.hh.
|
nodiscardvirtual0x806806DC |
Reimplemented in Field::ObjectKinokoUd.
Definition at line 100 of file ObjectBase.cc.
|
nodiscardvirtual0x80680784 |
Definition at line 92 of file ObjectBase.cc.
|
inlinenodiscardvirtual0x80681598 |
Definition at line 82 of file ObjectBase.hh.
|
nodiscardvirtual0x80680730 |
Definition at line 44 of file ObjectBase.cc.
|
inlinevirtual0x80680618 |
Definition at line 73 of file ObjectBase.hh.
|
inlinenodiscardvirtual0x80572574 |
Definition at line 92 of file ObjectBase.hh.
|
inlinevirtual |
Reimplemented in Field::ObjectCowHerd.
Definition at line 31 of file ObjectBase.hh.
|
inlinestaticnodiscardprotected0x8086C098 |
Definition at line 137 of file ObjectBase.hh.
|
protected0x80820EB8 |
Definition at line 119 of file ObjectBase.cc.
|
inlinevirtual |
Definition at line 37 of file ObjectBase.hh.
|
inlinenodiscardvirtual0x806BF434 |
Reimplemented in Field::ObjectKinoko.
Definition at line 45 of file ObjectBase.hh.
|
virtual0x8081FD10 |
Definition at line 52 of file ObjectBase.cc.
|
virtual0x80820980 |
Reimplemented in Field::ObjectBird.
Definition at line 70 of file ObjectBase.cc.
|
staticnodiscardprotected0x806B3CA4 |
Definition at line 183 of file ObjectBase.cc.
|
inlinenodiscard |
Definition at line 96 of file ObjectBase.hh.
|
inlinenodiscard |
Definition at line 77 of file ObjectBase.hh.
|
staticnodiscardprotected0x806B46A4 |
Definition at line 206 of file ObjectBase.cc.
|
inlinevirtual0x80821DB8 |
Definition at line 53 of file ObjectBase.hh.
|
staticnodiscardprotected0x806B3AC4 |
Definition at line 163 of file ObjectBase.cc.
|
staticnodiscardprotected0x806B3900 |
Rotates a vector around the Y-axis and returns the XZ-plane portion of the vector.
Definition at line 155 of file ObjectBase.cc.
|
inlinenodiscard |
Definition at line 115 of file ObjectBase.hh.
|
protected0x808218B0 |
Definition at line 140 of file ObjectBase.cc.
|
protected0x80821910 |
Definition at line 133 of file ObjectBase.cc.
|
inline |
Definition at line 100 of file ObjectBase.hh.
|
staticprotected0x806B41E0 |
Definition at line 172 of file ObjectBase.cc.
|
inline |
Definition at line 105 of file ObjectBase.hh.
|
inline |
Definition at line 110 of file ObjectBase.hh.
|
inlinevirtual0x80821DD8 |
Definition at line 58 of file ObjectBase.hh.
|
protected |
Definition at line 146 of file ObjectBase.hh.
|
protected |
Definition at line 142 of file ObjectBase.hh.
|
protected |
Definition at line 147 of file ObjectBase.hh.
|
protected |
Definition at line 144 of file ObjectBase.hh.
|
protected |
Definition at line 152 of file ObjectBase.hh.
|
protected |
Definition at line 148 of file ObjectBase.hh.
|
protected |
Definition at line 145 of file ObjectBase.hh.
|
protected |
Definition at line 143 of file ObjectBase.hh.
|
protected |
Definition at line 149 of file ObjectBase.hh.
|
protected |
Definition at line 150 of file ObjectBase.hh.
|
protected |
Definition at line 151 of file ObjectBase.hh.