Definition at line 23 of file ObjectCarTGE.hh.
Public Types | |
enum class | CarType { Normal = 0 , Truck = 1 , BombCar = 2 } |
![]() | |
enum class | eFlags { Position = 0 , Rotation = 1 , Matrix = 2 , Scale = 3 } |
typedef EGG::TBitFlag< u16, eFlags > | Flags |
Public Member Functions | |
ObjectCarTGE (const System::MapdataGeoObj ¶ms) | |
void | init () override |
void | calc () override |
u32 | loadFlags () const override |
const char * | getResources () const override |
const char * | getKclName () const override |
void | createCollision () override |
void | calcCollisionTransform () override |
f32 | getCollisionRadius () const override |
Kart::Reaction | onCollision (Kart::KartObject *kartObj, Kart::Reaction reactionOnKart, Kart::Reaction reactionOnObj, EGG::Vector3f &hitDepth) override |
bool | checkCollision (ObjectCollisionBase *lhs, EGG::Vector3f &dist) override |
const EGG::Vector3f & | collisionCenter () const override |
void | setHighwayManager (const ObjectHighwayManager *highwayMgr) |
void | reset () |
bool | squashed () const |
![]() | |
ObjectCollidable (const System::MapdataGeoObj ¶ms) | |
ObjectCollidable (const char *name, const EGG::Vector3f &pos, const EGG::Vector3f &rot, const EGG::Vector3f &scale) | |
void | load () override |
void | calcCollisionTransform () override |
f32 | getCollisionRadius () const override |
Finds the radius that fits fully in a BoxColUnit. | |
virtual void | loadAABB (f32 maxSpeed) |
virtual void | loadAABB (f32 radius, f32 maxSpeed) |
virtual void | processKartReactions (Kart::KartObject *kartObj, Kart::Reaction &reactionOnKart, Kart::Reaction &reactionOnObj) |
virtual void | onWallCollision (Kart::KartObject *, const EGG::Vector3f &) |
virtual void | onObjectCollision (Kart::KartObject *) |
virtual const EGG::Vector3f & | getCollisionTranslation () const |
virtual ObjectCollisionBase * | collision () const |
![]() | |
ObjectBase (const System::MapdataGeoObj ¶ms) | |
ObjectBase (const char *name, const EGG::Vector3f &pos, const EGG::Vector3f &rot, const EGG::Vector3f &scale) | |
virtual void | calcModel () |
virtual void | loadGraphics () |
virtual void | loadAnims () |
virtual void | loadRail () |
virtual const char * | getName () const |
virtual const EGG::Vector3f & | getPosition () const |
virtual ObjectId | id () const |
const EGG::Vector3f & | pos () const |
void | setPos (const EGG::Vector3f &pos) |
![]() | |
StateManager (ObjectCarTGE *obj) | |
![]() |
Private Member Functions | |
void | enterStateStub () |
void | calcStateStub () |
void | calcState1 () |
The state when cars are speeding up. | |
void | calcState2 () |
The state when cars are slowing down. | |
void | calcPos () |
Private Attributes | |
friend | StateManager< ObjectCarTGE > |
const ObjectHighwayManager * | m_highwayMgr |
ObjectCollisionBase * | m_auxCollision |
f32 | m_highwayVel |
Speed while on the highway. | |
f32 | m_localVel |
Speed while off the highway. | |
char | m_carName [32] |
char | m_mdlName [32] |
CarType | m_carType |
Car, truck, or bomb car. | |
ObjectId | m_dummyId |
EGG::Vector3f | m_scaledTangentDir |
f32 | m_currSpeed |
EGG::Vector3f | m_up |
EGG::Vector3f | m_tangent |
bool | m_squashed |
bool | m_hasAuxCollision |
f32 | m_hitAngle |
Static Private Attributes | |
static constexpr f32 | TOLL_BOOTH_ACCEL = 200.0f |
|
strong |
Enumerator | |
---|---|
BombCar | Unused in time trials. |
Definition at line 27 of file ObjectCarTGE.hh.
|
0x806D5EE4 |
Definition at line 15 of file ObjectCarTGE.cc.
|
override0x806D691C |
Definition at line 102 of file ObjectCarTGE.cc.
|
overridevirtual0x806D6ECC |
Reimplemented from Field::ObjectBase.
Definition at line 144 of file ObjectCarTGE.cc.
|
overridevirtual0x806D7BF8 |
Implements Field::ObjectBase.
Definition at line 195 of file ObjectCarTGE.cc.
|
private0x806D9000 |
Definition at line 327 of file ObjectCarTGE.cc.
|
private0x806D7D70 |
The state when cars are speeding up.
On Moonview Highway, the speed cap m_highwayVel is 70, which means this state is only executed for 1 frame when cars get on the highway.
Definition at line 298 of file ObjectCarTGE.cc.
|
private0x806D7E0C |
The state when cars are slowing down.
On Moonview Highway, the speed floor m_localVel is 40, which means this state is only executed for 1 frame when cars get off the highway.
Definition at line 314 of file ObjectCarTGE.cc.
|
private |
Definition at line 292 of file ObjectCarTGE.cc.
|
overridevirtual0x806DA660 |
Reimplemented from Field::ObjectCollidable.
Definition at line 262 of file ObjectCarTGE.cc.
|
nodiscardoverridevirtual0x806D7CF8 |
Reimplemented from Field::ObjectCollidable.
Definition at line 275 of file ObjectCarTGE.cc.
|
overridevirtual0x806D7AF8 |
Implements Field::ObjectBase.
Definition at line 176 of file ObjectCarTGE.cc.
|
private |
Definition at line 290 of file ObjectCarTGE.cc.
|
nodiscardoverridevirtual0x806D69C0 |
Reimplemented from Field::ObjectBase.
Definition at line 213 of file ObjectCarTGE.cc.
|
inlinenodiscardoverridevirtual0x806DA7A4 |
Reimplemented from Field::ObjectBase.
Definition at line 50 of file ObjectCarTGE.hh.
|
inlinenodiscardoverridevirtual0x806D68B0 |
Reimplemented from Field::ObjectBase.
Definition at line 45 of file ObjectCarTGE.hh.
|
overridevirtual0x806D6B14 |
Reimplemented from Field::ObjectBase.
Definition at line 107 of file ObjectCarTGE.cc.
|
inlinenodiscardoverridevirtual0x806DA7AC |
Reimplemented from Field::ObjectBase.
Definition at line 40 of file ObjectCarTGE.hh.
|
overridevirtual0x806D7328 |
Reimplemented from Field::ObjectCollidable.
Definition at line 222 of file ObjectCarTGE.cc.
|
inline0x806D9A04 |
Definition at line 67 of file ObjectCarTGE.hh.
|
inline |
Definition at line 62 of file ObjectCarTGE.hh.
|
inlinenodiscard |
Definition at line 71 of file ObjectCarTGE.hh.
|
private |
Definition at line 86 of file ObjectCarTGE.hh.
|
private |
Definition at line 89 of file ObjectCarTGE.hh.
|
private |
Car, truck, or bomb car.
Definition at line 91 of file ObjectCarTGE.hh.
|
private |
Definition at line 94 of file ObjectCarTGE.hh.
|
private |
Definition at line 92 of file ObjectCarTGE.hh.
|
private |
Definition at line 98 of file ObjectCarTGE.hh.
|
private |
Definition at line 85 of file ObjectCarTGE.hh.
|
private |
Speed while on the highway.
Definition at line 87 of file ObjectCarTGE.hh.
|
private |
Definition at line 99 of file ObjectCarTGE.hh.
|
private |
Speed while off the highway.
Definition at line 88 of file ObjectCarTGE.hh.
|
private |
Definition at line 90 of file ObjectCarTGE.hh.
|
private |
Definition at line 93 of file ObjectCarTGE.hh.
|
private |
Definition at line 97 of file ObjectCarTGE.hh.
|
private |
Definition at line 96 of file ObjectCarTGE.hh.
|
private |
Definition at line 95 of file ObjectCarTGE.hh.
|
private |
Definition at line 24 of file ObjectCarTGE.hh.
|
staticconstexprprivate |
Definition at line 76 of file ObjectCarTGE.hh.