Isle
|
Holds all data for a single pizza mission for a specific actor. More...
#include <pizza.h>
Public Member Functions | |
Mission () | |
Default mission constructor. More... | |
Mission (MxU8 p_actorId, undefined2 p_unk0x04, MxLong *p_finishTimes, IsleScript::Script *p_actions, MxS16 p_numActions) | |
Initializes the mission with actor, time thresholds, scripts array, and number of actions. More... | |
Mission & | operator= (const Mission &p_mission) |
Assignment operator for copying all mission data. More... | |
IsleScript::Script | GetRedFinishAction () |
Gets the script for the "red" (best time) mission finish. More... | |
IsleScript::Script | GetBlueFinishAction () |
Gets the script for the "blue" (medium time) mission finish. More... | |
IsleScript::Script | GetYellowFinishAction () |
Gets the script for the "yellow" (slowest success) finish. More... | |
MxLong | GetRedFinishTime () |
Gets the maximum allowed time for a "red" (perfect) finish. More... | |
MxLong | GetBlueFinishTime () |
Gets the maximum allowed time for a "blue" finish. More... | |
void | UpdateScore (ScoreColor p_score) |
Updates both current and high score with the supplied new score color, raising high score if necessary. More... | |
IsleScript::Script * | GetActions () |
Returns pointer to array of all action scripts for this mission. More... | |
IsleScript::Script | GetUnknownFinishAction () |
Gets the script corresponding to the "unknown finish", used as an alternative timeout/decline action. More... | |
MxLong | GetTimeoutTime () |
Gets the threshold time used for mission timeout events. More... | |
Public Attributes | |
MxS16 | m_numActions |
Number of standard actions in script (before special finish actions) [AI]. More... | |
MxU8 | m_actorId |
Actor (character) ID for this mission [AI]. More... | |
undefined2 | m_unk0x04 |
Used by mission logic, typically 2. [AI]. More... | |
MxS16 | m_unk0x06 |
Used by serialization and progress tracking (mission attempt counter/state) [AI]. More... | |
undefined | m_unk0x08 |
Unknown, always set to 1 at construction. [AI]. More... | |
MxLong * | m_finishTimes |
Pointer to array of finish time thresholds, 4 per mission [AI]. More... | |
MxLong | m_startTime |
Time when mission started (INT_MIN if not started) [AI]. More... | |
MxS16 | m_unk0x14 |
Used by helicopter and special mission checks [AI]. More... | |
MxS16 | m_score |
Current completion score (LegoState color encoding) [AI]. More... | |
MxS16 | m_hiScore |
Historical best (high score) for this mission/color [AI]. More... | |
IsleScript::Script * | m_actions |
Script array for actions and finish events for the mission [AI]. More... | |
Holds all data for a single pizza mission for a specific actor.
[AI]
Each Mission contains finish time thresholds, action scripts for standard and finish actions, and current/high score. [AI]
|
inline |
|
inline |
Initializes the mission with actor, time thresholds, scripts array, and number of actions.
[AI]
p_actorId | The actor ID (Pepper, Mama, etc.). [AI] |
p_unk0x04 | Unknown purpose. Used by game logic for mission state (typically 2). [AI] |
p_finishTimes | Pointer to array of finish time thresholds for red, blue, yellow, and timeout. [AI] |
p_actions | Pointer to array of scripts used for this mission. [AI] |
p_numActions | Number of standard actions before finish actions. [AI] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
IsleScript::Script* PizzaMissionState::Mission::m_actions |
MxU8 PizzaMissionState::Mission::m_actorId |
MxLong* PizzaMissionState::Mission::m_finishTimes |
MxS16 PizzaMissionState::Mission::m_hiScore |
MxS16 PizzaMissionState::Mission::m_numActions |
MxS16 PizzaMissionState::Mission::m_score |
MxLong PizzaMissionState::Mission::m_startTime |
undefined2 PizzaMissionState::Mission::m_unk0x04 |
MxS16 PizzaMissionState::Mission::m_unk0x06 |
undefined PizzaMissionState::Mission::m_unk0x08 |
MxS16 PizzaMissionState::Mission::m_unk0x14 |