Isle
|
[AI] Represents the state information specific to the Police area of the game. More...
#include <police.h>
Public Member Functions | |
PoliceState () | |
[AI] Constructs a new PoliceState. Initializes script and internal state. [AI] More... | |
~PoliceState () override | |
[AI] Default destructor. [AI] More... | |
const char * | ClassName () const override |
[AI] Returns the class name for this type; used for RTTI and IsA checks. More... | |
MxBool | IsA (const char *p_name) const override |
[AI] Checks whether the given type name matches this class or any ancestor. More... | |
MxResult | Serialize (LegoStorage *p_storage) override |
[AI] Serialize the PoliceState to or from the provided storage. More... | |
undefined4 | GetUnknown0x0c () |
[AI] Returns the value of the internal state variable at offset 0x0c. More... | |
void | SetUnknown0x0c (undefined4 p_unk0x0c) |
[AI] Set the value of the internal state variable at offset 0x0c. More... | |
void | FUN_1005ea40 () |
[AI] Trigger the "donut" animation event. More... | |
![]() | |
~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... | |
![]() | |
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... | |
Public Attributes | |
PoliceScript::Script | m_policeScript |
[AI] The currently active animation/script for the Police state (e.g. which minifig or animation runs). [AI] More... | |
undefined4 | m_unk0x0c |
[AI] Internal flag to indicate whether the donut animation has started (1), finished (0), or unused. More... | |
Additional Inherited Members | |
![]() | |
enum | ScoreColor { e_grey = 0 , e_yellow , e_blue , e_red } |
[AI] Score coloring values for in-game display feedback or logic. More... | |
[AI] Represents the state information specific to the Police area of the game.
[AI]
This holds the currently active police script/animation and a flag for internal state machine transitions. Serialized as part of the game state when saving/loading. Inherits from LegoState for polymorphic game state management. [AI]
PoliceState::PoliceState | ( | ) |
[AI] Constructs a new PoliceState. Initializes script and internal state. [AI]
Definition at line 198 of file police.cpp.
|
inlineoverride |
|
inlineoverridevirtual |
void PoliceState::FUN_1005ea40 | ( | ) |
[AI] Trigger the "donut" animation event.
[AI]
[AI] Switches the police script according to the user-controlled actor, plays corresponding anim, and marks donut animation as started. [AI]
Definition at line 221 of file police.cpp.
|
inline |
|
inlineoverridevirtual |
|
overridevirtual |
[AI] Serialize the PoliceState to or from the provided storage.
[AI]
p_storage | File or memory storage interface for serialization. [AI] |
[AI] Reads or writes the current script from/to storage, as well as base LegoState members. [AI]
Reimplemented from LegoState.
Definition at line 206 of file police.cpp.
|
inline |
PoliceScript::Script PoliceState::m_policeScript |
undefined4 PoliceState::m_unk0x0c |