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

[AI] Per-race state data and logic holder for JetskiRace, used for tracking player and AI standings, lap progress, and results. More...

#include <jetskirace.h>

Inheritance diagram for JetskiRaceState:
Collaboration diagram for JetskiRaceState:

Public Member Functions

const char * ClassName () const override
 [AI] Returns class name for runtime introspection and type matching. More...
 
MxBool IsA (const char *p_name) const override
 [AI] Runtime type check for JetskiRaceState or parent types. 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

[AI] Per-race state data and logic holder for JetskiRace, used for tracking player and AI standings, lap progress, and results.

[AI] Derived from RaceState, supports reflection, serialization, and score/goal tracking for the Jetski racing minigame.

Definition at line 107 of file jetskirace.h.

Member Function Documentation

◆ ClassName()

const char * JetskiRaceState::ClassName ( ) const
overridevirtual

[AI] Returns class name for runtime introspection and type matching.

Returns
"JetskiRaceState" string. [AI]

Reimplemented from MxCore.

◆ IsA()

MxBool JetskiRaceState::IsA ( const char *  p_name) const
overridevirtual

[AI] Runtime type check for JetskiRaceState or parent types.

Parameters
p_nameClass name for which to check matching/inheritance. [AI]

[AI] Supports both self and parent RaceState checks for scripting and logic dispatch.

Returns
True if names match this or a parent class. [AI]

Reimplemented from MxCore.


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