SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
ActorStateKeeper Class Reference

Classes

struct  State
 

Public Member Functions

 ActorStateKeeper (int)
 
void addState (ActorStateBaseInterface *, const Nerve *, const char *)
 
bool updateCurrentState ()
 
void startState (const Nerve *)
 
void endState (const Nerve *)
 
StatefindStateInfo (const Nerve *)
 

Public Attributes

s32 mStatesCapacity
 
s32 mLength
 
StatemStates
 
StatemCurrentState
 

Detailed Description

Definition at line 6 of file ActorStateKeeper.hpp.

Constructor & Destructor Documentation

◆ ActorStateKeeper()

ActorStateKeeper::ActorStateKeeper ( int capacity)

Definition at line 4 of file ActorStateKeeper.cpp.

Member Function Documentation

◆ addState()

void ActorStateKeeper::addState ( ActorStateBaseInterface * pInterface,
const Nerve * pNerve,
const char * pName )

Definition at line 39 of file ActorStateKeeper.cpp.

◆ updateCurrentState()

bool ActorStateKeeper::updateCurrentState ( )

Definition at line 15 of file ActorStateKeeper.cpp.

◆ startState()

void ActorStateKeeper::startState ( const Nerve * pNerve)

Definition at line 19 of file ActorStateKeeper.cpp.

◆ endState()

void ActorStateKeeper::endState ( const Nerve * pNerve)

Definition at line 28 of file ActorStateKeeper.cpp.

◆ findStateInfo()

ActorStateKeeper::State * ActorStateKeeper::findStateInfo ( const Nerve * pNerve)

Definition at line 47 of file ActorStateKeeper.cpp.

Member Data Documentation

◆ mStatesCapacity

s32 ActorStateKeeper::mStatesCapacity

Definition at line 22 of file ActorStateKeeper.hpp.

◆ mLength

s32 ActorStateKeeper::mLength

Definition at line 23 of file ActorStateKeeper.hpp.

◆ mStates

State* ActorStateKeeper::mStates

Definition at line 24 of file ActorStateKeeper.hpp.

◆ mCurrentState

State* ActorStateKeeper::mCurrentState

Definition at line 25 of file ActorStateKeeper.hpp.