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

[AI] State-holding class for the hospital area; persists area-specific progress and variables between game sessions. More...

#include <hospital.h>

Inheritance diagram for HospitalState:
Collaboration diagram for HospitalState:

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...
 
- 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] 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

- 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

[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.

Constructor & Destructor Documentation

◆ HospitalState()

HospitalState::HospitalState ( )

[AI] Constructs a new HospitalState object and initializes all progression counters to zero.

[AI]

Definition at line 675 of file hospital.cpp.

◆ ~HospitalState()

HospitalState::~HospitalState ( )
inlineoverride

[AI] Default virtual destructor.

[AI]

Definition at line 31 of file hospital.h.

Member Function Documentation

◆ ClassName()

const char * HospitalState::ClassName ( ) const
inlineoverridevirtual

[AI] Retrieves the class name string for run-time type identification.

[AI]

Returns
Pointer to static string "HospitalState". [AI]

Reimplemented from MxCore.

Definition at line 37 of file hospital.h.

◆ IsA()

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

[AI] Checks if the object matches the class name or any parent type.

[AI]

Parameters
p_nameName of the class to check against. [AI]
Returns
TRUE if matches this or parent class; otherwise FALSE. [AI]

Reimplemented from MxCore.

Definition at line 48 of file hospital.h.

◆ Serialize()

MxResult HospitalState::Serialize ( LegoStorage p_storage)
overridevirtual

[AI] (De)serializes this state to or from the provided LegoStorage handler.

[AI]

Parameters
p_storageThe 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.

Member Data Documentation

◆ m_unk0x08

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.

◆ m_unk0x0c

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.

◆ m_unk0x0e

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.

◆ m_unk0x10

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.

◆ m_unk0x12

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.

◆ m_unk0x14

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.

◆ m_unk0x16

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.


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