Isle
|
[AI] State-holding class for the hospital area; persists area-specific progress and variables between game sessions. More...
#include <hospital.h>
Public Member Functions | |
HospitalState () | |
[AI] Constructs a new HospitalState object and initializes all progression counters to zero. More... | |
~HospitalState () override | |
[AI] Default virtual destructor. More... | |
const char * | ClassName () const override |
[AI] Retrieves the class name string for run-time type identification. More... | |
MxBool | IsA (const char *p_name) const override |
[AI] Checks if the object matches the class name or any parent type. More... | |
MxResult | Serialize (LegoStorage *p_storage) override |
[AI] (De)serializes this state to or from the provided LegoStorage handler. 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 | |
undefined4 | m_unk0x08 |
[AI] State machine/counter variable determining narrative step or branch. More... | |
MxS16 | m_unk0x0c |
[AI] General area progress/counter for current actor (mirrors one of the counters below depending on which actor is active). More... | |
MxS16 | m_unk0x0e |
[AI] Progress counter for PEPPER character's hospital actions or visit. More... | |
MxS16 | m_unk0x10 |
[AI] Progress counter for MAMA character's hospital actions or visit. More... | |
MxS16 | m_unk0x12 |
[AI] Progress counter for PAPA character's hospital actions or visit. More... | |
MxS16 | m_unk0x14 |
[AI] Progress counter for NICK character's hospital actions or visit. More... | |
MxS16 | m_unk0x16 |
[AI] Progress counter for LAURA character's hospital actions or visit. 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] State-holding class for the hospital area; persists area-specific progress and variables between game sessions.
[AI]
[AI] HospitalState tracks progress and counters for each main actor in the hospital, along with a status indicator used to represent finite state machine progress (e.g. script step/phase). It inherits persistence and polymorphic type information methods from LegoState. [AI]
Definition at line 21 of file hospital.h.
HospitalState::HospitalState | ( | ) |
[AI] Constructs a new HospitalState object and initializes all progression counters to zero.
[AI]
Definition at line 675 of file hospital.cpp.
|
inlineoverride |
|
inlineoverridevirtual |
[AI] Retrieves the class name string for run-time type identification.
[AI]
Reimplemented from MxCore.
Definition at line 37 of file hospital.h.
|
inlineoverridevirtual |
[AI] Checks if the object matches the class name or any parent type.
[AI]
p_name | Name of the class to check against. [AI] |
Reimplemented from MxCore.
Definition at line 48 of file hospital.h.
|
overridevirtual |
[AI] (De)serializes this state to or from the provided LegoStorage handler.
[AI]
p_storage | The LegoStorage context object (controls read/write and underlying storage). [AI] |
[AI] All main member variables are read from or written to the save file, depending on mode. [AI]
Reimplemented from LegoState.
Definition at line 687 of file hospital.cpp.
undefined4 HospitalState::m_unk0x08 |
[AI] State machine/counter variable determining narrative step or branch.
[AI_SUGGESTED_NAME: m_status] [AI]
[AI] Values used internally to indicate current step in the hospital FSM/state sequence. [AI]
Definition at line 69 of file hospital.h.
MxS16 HospitalState::m_unk0x0c |
[AI] General area progress/counter for current actor (mirrors one of the counters below depending on which actor is active).
[AI_SUGGESTED_NAME: m_progressCounter] [AI]
[AI] Set from the relevant actor field and used to determine action branching. [AI]
Definition at line 75 of file hospital.h.
MxS16 HospitalState::m_unk0x0e |
[AI] Progress counter for PEPPER character's hospital actions or visit.
Ranges at least 0-5. [AI_SUGGESTED_NAME: m_pepperProgress] [AI]
Definition at line 80 of file hospital.h.
MxS16 HospitalState::m_unk0x10 |
[AI] Progress counter for MAMA character's hospital actions or visit.
Ranges at least 0-5. [AI_SUGGESTED_NAME: m_mamaProgress] [AI]
Definition at line 85 of file hospital.h.
MxS16 HospitalState::m_unk0x12 |
[AI] Progress counter for PAPA character's hospital actions or visit.
Ranges at least 0-5. [AI_SUGGESTED_NAME: m_papaProgress] [AI]
Definition at line 90 of file hospital.h.
MxS16 HospitalState::m_unk0x14 |
[AI] Progress counter for NICK character's hospital actions or visit.
Ranges at least 0-5. [AI_SUGGESTED_NAME: m_nickProgress] [AI]
Definition at line 95 of file hospital.h.
MxS16 HospitalState::m_unk0x16 |
[AI] Progress counter for LAURA character's hospital actions or visit.
Ranges at least 0-5. [AI_SUGGESTED_NAME: m_lauraProgress] [AI]
Definition at line 100 of file hospital.h.