Isle
|
Pizza mission state for the pizza delivery minigame and related characters. More...
#include <pizza.h>
Classes | |
struct | Mission |
Holds all data for a single pizza mission for a specific actor. More... | |
Public Member Functions | |
PizzaMissionState () | |
Constructs a new PizzaMissionState and initializes missions for all possible actors. More... | |
const char * | ClassName () const override |
Returns the name of this state class (PizzaMissionState). More... | |
MxBool | IsA (const char *p_name) const override |
Checks whether the given class name is PizzaMissionState or any base. More... | |
MxResult | Serialize (LegoStorage *p_storage) override |
Serializes custom mission fields (score, progress) for saving/loading game state. More... | |
void | SetUnknown0xb0 (MxU32 p_unk0xb0) |
Sets the m_unk0xb0 member, which holds the current object ID of the pending mission action. More... | |
MxU32 | GetUnknown0xb0 () |
Gets the m_unk0xb0 member, which holds the object ID associated with current/next mission flow. More... | |
MxS16 | GetHighScore (MxU8 p_actorId) |
Retrieves the historical best (high) score for a given actor's pizza mission. More... | |
Mission * | GetMission (MxU8 p_actorId) |
Finds the Mission struct belonging to a given actor/character. More... | |
MxS16 | FUN_10039540 () |
Invokes logic in the PizzeriaState required for mission state transitions. 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 | |
PizzeriaState * | m_pizzeriaState |
Pointer to current pizzeria state for delegating cross-mission logic. [AI]. More... | |
undefined4 | m_unk0x0c |
Used for internal state machine; controls mission flow/progress (e.g., 0=idle, 1=proposed, ...) [AI]. More... | |
Mission | m_missions [5] |
Array with per-actor mission progress. [AI]. More... | |
MxU32 | m_unk0xb0 |
Holds currently "pending" action/object for mission transitions. [AI]. More... | |
Static Public Attributes | |
static IsleScript::Script | g_pepperActions [] |
Action scripts for each actor's pizza mission (indexed in Mission::m_actions) [AI]. More... | |
static IsleScript::Script | g_mamaActions [] |
static IsleScript::Script | g_papaActions [] |
static IsleScript::Script | g_nickActions [] |
static IsleScript::Script | g_lauraActions [] |
static MxLong | g_pepperFinishTimes [] = {100000, 200000, 300000, 350000} |
Finish time thresholds (red/blue/yellow/timeout) for all pizza missions (per-actor) [AI]. More... | |
static MxLong | g_mamaFinishTimes [] = {100000, 200000, 300000, 350000} |
static MxLong | g_papaFinishTimes [] = {100000, 200000, 300000, 350000} |
static MxLong | g_nickFinishTimes [] = {100000, 200000, 300000, 350000} |
static MxLong | g_lauraFinishTimes [] = {100000, 200000, 300000, 350000} |
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... | |
Pizza mission state for the pizza delivery minigame and related characters.
[AI]
PizzaMissionState encapsulates the persistent state for the pizza delivery mission for each character (Pepper, Mama, Papa, Nick, Laura). It stores the mission scripting, finish time thresholds, and score tracking for each actor, as well as state for mission progress and serialization. [AI]
PizzaMissionState::PizzaMissionState | ( | ) |
Constructs a new PizzaMissionState and initializes missions for all possible actors.
[AI]
|
inlineoverridevirtual |
MxS16 PizzaMissionState::FUN_10039540 | ( | ) |
Invokes logic in the PizzeriaState required for mission state transitions.
[AI] [AI_SUGGESTED_NAME: GetPizzeriaProgressStage]
PizzaMissionState::Mission * PizzaMissionState::GetMission | ( | MxU8 | p_actorId | ) |
|
inline |
|
inlineoverridevirtual |
Checks whether the given class name is PizzaMissionState or any base.
[AI]
p_name | Class name to check. [AI] |
Reimplemented from LegoState.
|
overridevirtual |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Action scripts for each actor's pizza mission (indexed in Mission::m_actions) [AI].
|
static |
Mission PizzaMissionState::m_missions[5] |
PizzeriaState* PizzaMissionState::m_pizzeriaState |
undefined4 PizzaMissionState::m_unk0x0c |
MxU32 PizzaMissionState::m_unk0xb0 |