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

Represents the state object for Act 2 of the game. More...

#include <legoact2.h>

Inheritance diagram for LegoAct2State:
Collaboration diagram for LegoAct2State:

Public Member Functions

 LegoAct2State ()
 Constructor, initializes state members. More...
 
 ~LegoAct2State () override
 Destructor. More...
 
MxBool IsSerializable () override
 Always returns FALSE, as this state is not serializable. More...
 
const char * ClassName () const override
 Returns the class name of this state ("LegoAct2State"). More...
 
MxBool IsA (const char *p_name) const override
 Type check against class name or parent class. More...
 
void SetUnknown0x08 (undefined4 p_unk0x08)
 Sets the unknown value (purpose unclear). More...
 
undefined4 GetUnknown0x08 ()
 Gets the value of the unknown member variable. 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...
 

Public Attributes

undefined4 m_unk0x08
 [AI] Unknown state variable. Purpose unclear. [AI] More...
 
MxBool m_enabled
 [AI] TRUE if this state is currently enabled/active. [AI] 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...
 

Detailed Description

Represents the state object for Act 2 of the game.

[AI]

LegoAct2State is a subclass of LegoState and is used to store state information specific to Act 2. It holds an unknown value, and an enabled flag indicating whether the state is currently active/used.

Not serializable (IsSerializable always returns FALSE). [AI]

Definition at line 25 of file legoact2.h.

Constructor & Destructor Documentation

◆ LegoAct2State()

LegoAct2State::LegoAct2State ( )
inline

Constructor, initializes state members.

[AI]

Definition at line 30 of file legoact2.h.

◆ ~LegoAct2State()

LegoAct2State::~LegoAct2State ( )
inlineoverride

Destructor.

[AI]

Definition at line 39 of file legoact2.h.

Member Function Documentation

◆ ClassName()

const char * LegoAct2State::ClassName ( ) const
inlineoverridevirtual

Returns the class name of this state ("LegoAct2State").

[AI]

Reimplemented from MxCore.

Definition at line 49 of file legoact2.h.

◆ GetUnknown0x08()

undefined4 LegoAct2State::GetUnknown0x08 ( )
inline

Gets the value of the unknown member variable.

[AI]

Returns
Current value of m_unk0x08. [AI]

Definition at line 78 of file legoact2.h.

◆ IsA()

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

Type check against class name or parent class.

[AI]

Parameters
p_nameName to check. [AI]

Checks if the provided class name matches this class or a base class. [AI]

Reimplemented from MxCore.

Definition at line 60 of file legoact2.h.

◆ IsSerializable()

MxBool LegoAct2State::IsSerializable ( )
inlineoverridevirtual

Always returns FALSE, as this state is not serializable.

[AI]

Reimplemented from LegoState.

Definition at line 44 of file legoact2.h.

◆ SetUnknown0x08()

void LegoAct2State::SetUnknown0x08 ( undefined4  p_unk0x08)
inline

Sets the unknown value (purpose unclear).

[AI]

Parameters
p_unk0x08Value to assign. [AI]

Definition at line 72 of file legoact2.h.

Member Data Documentation

◆ m_enabled

MxBool LegoAct2State::m_enabled

[AI] TRUE if this state is currently enabled/active. [AI]

Definition at line 83 of file legoact2.h.

◆ m_unk0x08

undefined4 LegoAct2State::m_unk0x08

[AI] Unknown state variable. Purpose unclear. [AI]

Definition at line 82 of file legoact2.h.


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