Isle
Loading...
Searching...
No Matches
CarRaceState Class Reference

The state object used for the car race mini-game. More...

#include <carrace.h>

Inheritance diagram for CarRaceState:
Collaboration diagram for CarRaceState:

Public Member Functions

const char * ClassName () const override
 Returns the class name for runtime type identification ("CarRaceState"). More...
 
MxBool IsA (const char *p_name) const override
 Checks if this object is the specified class or inherits from it. More...
 
- Public Member Functions inherited from RaceState
 RaceState ()
 [AI] Constructs a RaceState, initializing all races with default values and IDs (1 through 5). More...
 
const char * ClassName () const override
 [AI] Returns the class name of the RaceState object ("RaceState"). More...
 
MxBool IsA (const char *p_name) const override
 [AI] Checks if the object is exactly a RaceState or derived thereof, using class name string comparison (including parent LegoState). More...
 
MxResult Serialize (LegoStorage *p_storage) override
 [AI] Serializes all race state entries to or from the given storage object. More...
 
EntryGetState (MxU8 p_id)
 [AI] Fetches a race state entry matching the given entry ID, or NULL if not found in the array. More...
 
- Public Member Functions inherited from LegoState
 ~LegoState () override
 [AI] Virtual destructor to allow subclass cleanup. More...
 
virtual MxBool IsSerializable ()
 [AI] Returns if this state can be serialized (for game saving/loading support). More...
 
virtual MxBool Reset ()
 [AI] Hook for returning object to default (empty) state; not implemented in this base. More...
 
virtual MxResult Serialize (LegoStorage *p_storage)
 [AI] Serialize state to a storage (for save/load). More...
 
const char * ClassName () const override
 [AI] Gets this class's name for RTTI/IsA functionality. More...
 
MxBool IsA (const char *p_name) const override
 [AI] Tests if this object is of a given class name, directly or through inheritance. More...
 
- Public Member Functions inherited from MxCore
 MxCore ()
 [AI] Constructs a new MxCore object and assigns it a unique id. More...
 
virtual ~MxCore ()
 [AI] Virtual destructor. Required for correct polymorphic cleanup in derived classes. More...
 
virtual MxLong Notify (MxParam &p_param)
 [AI] Virtual callback notification mechanism. More...
 
virtual MxResult Tickle ()
 [AI] Called by tickle managers to allow the object to update itself. More...
 
virtual const char * ClassName () const
 [AI] Returns the runtime class name of this object. More...
 
virtual MxBool IsA (const char *p_name) const
 [AI] Checks whether this object's class type or parents match the given name. More...
 
MxU32 GetId ()
 [AI] Gets the unique (per-process) id assigned to this object instance. More...
 

Additional Inherited Members

- Public Types inherited from LegoState
enum  ScoreColor { e_grey = 0 , e_yellow , e_blue , e_red }
 [AI] Score coloring values for in-game display feedback or logic. More...
 
- Public Attributes inherited from RaceState
Entry m_state [5]
 [AI] Entries for each tracked race/state (IDs 1..5). More...
 
undefined4 m_unk0x28
 [AI] Unknown extra field, always initialized to zero. More...
 

Detailed Description

The state object used for the car race mini-game.

[AI]

[AI] CarRaceState manages and tracks the game state for the car racing sequence in the game. It implements type identification via ClassName and IsA for runtime checks and inheritance testing. [AI]

Definition at line 16 of file carrace.h.

Member Function Documentation

◆ ClassName()

const char * CarRaceState::ClassName ( ) const
inlineoverridevirtual

Returns the class name for runtime type identification ("CarRaceState").

[AI]

[AI] Used for dynamic IsA checks and scripting. [AI]

Returns
Pointer to the class name string. [AI]

Reimplemented from MxCore.

Definition at line 23 of file carrace.h.

◆ IsA()

MxBool CarRaceState::IsA ( const char *  p_name) const
inlineoverridevirtual

Checks if this object is the specified class or inherits from it.

[AI]

Parameters
p_nameClass name to check against. [AI]

[AI] Performs a string comparison and delegates up to RaceState if there is no match. [AI]

Returns
TRUE if this object matches the specified type, or a parent does. [AI]

Reimplemented from MxCore.

Definition at line 35 of file carrace.h.


The documentation for this class was generated from the following file: