A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Field::StateManager< ObjectCarTGE > Class Reference

Description

Definition at line 14 of file ObjectCarTGE.hh.

Inheritance diagram for Field::StateManager< ObjectCarTGE >:

Public Member Functions

 StateManager (ObjectCarTGE *obj)
 
- Public Member Functions inherited from Field::StateManagerBase< ObjectCarTGE >

Static Private Attributes

static const std::array< StateManagerEntry< ObjectCarTGE >, 3 > STATE_ENTRIES
 

Additional Inherited Members

- Protected Attributes inherited from Field::StateManagerBase< ObjectCarTGE >
u16 m_currentStateId
 
s32 m_nextStateId
 
u32 m_currentFrame
 
std::span< u16m_entryIds
 
std::span< const StateManagerEntry< ObjectCarTGE > > m_entries
 
const ObjectCarTGEm_obj
 

Constructor & Destructor Documentation

◆ StateManager()

Field::StateManager< ObjectCarTGE >::StateManager ( ObjectCarTGE * obj)

Definition at line 362 of file ObjectCarTGE.cc.

◆ ~StateManager()

Definition at line 379 of file ObjectCarTGE.cc.

Member Data Documentation

◆ STATE_ENTRIES

const std::array< StateManagerEntry< ObjectCarTGE >, 3 > Field::StateManager< ObjectCarTGE >::STATE_ENTRIES
staticprivate
Initial value:
= {{
{0, &ObjectCarTGE::enterStateStub, &ObjectCarTGE::calcStateStub},
{1, &ObjectCarTGE::enterStateStub, &ObjectCarTGE::calcState1},
{2, &ObjectCarTGE::enterStateStub, &ObjectCarTGE::calcState2},
}}
void calcState1()
The state when cars are speeding up.
void calcState2()
The state when cars are slowing down.

Definition at line 20 of file ObjectCarTGE.hh.