35 m_maxLinearVel = 25.0;
63 sprintf(buf,
"%g", speed / maxLinearVel);
101 m_jetskiDashboardStreamId = 10 * (colorOffset + 3);
103 m_jetskiDashboardStreamId += colorOffset;
128void Jetski::RemoveFromWorld()
175 mat.
TranslateBy(mat[2][0] * 2.5, mat[2][1] + 0.6, mat[2][2] * 2.5);
[AI] Holds state and transient gameplay data for the first act on Lego Island.
MxBool m_unk0x022
[AI] Temporary state variable; persists through serialization, often used for logic gating....
MxU32 m_unk0x018
[AI] Internal gameplay state variable; see Get/SetUnknown18 for usage. [AI]
static MxS32 GetColorOffset(const char *p_variable)
[AI] Determines the color offset index for the dune buggy dashboard based on a variable.
Derived path actor type for handling player transitions and activities on LEGO Island.
@ c_spawnBit1
[AI] Bit flag to trigger additional camera/animation sequence during spawn. [AI]
@ c_playMusic
[AI] Bit flag to trigger background music playback on spawn. [AI]
@ c_spawnBit3
[AI] Unused/reserved extra spawn bit in flag set. [AI]
MxResult Create(MxDSAction &p_dsAction) override
[AI] Initialize this actor from a DSAction.
virtual void SpawnPlayer(LegoGameState::Area p_area, MxBool p_enter, MxU8 p_flags)
[AI] Spawns the player in a specific area/location, potentially triggering music and animation.
virtual void Exit()
[AI] Called when the actor is deactivated or moved out of player control, restoring previous actor if...
LegoWorld * m_world
[AI] Pointer to the current world instance actor is existing in. [AI]
virtual void Enter()
[AI] Called when the actor is made active in a new area or context, setting navigation and visibility...
[AI] Represents the main overworld (LEGO Island) in the game, acting as the central hub and state mac...
[AI] Represents the jetski vehicle placed in the 3D world of LEGO Island.
MxLong HandleControl(LegoControlManagerNotificationParam &) override
[AI] Handles control notifications from the LegoControlManager (e.g., UI element actions,...
void ActivateSceneActions()
[AI] Activates scene-specific scripted actions, such as music or camera animations,...
MxResult Create(MxDSAction &p_dsAction) override
[AI] Creates and initializes the Jetski by adding it to the current world, initializing variables,...
MxBool IsA(const char *p_name) const override
[AI] Checks if this object is of type "Jetski" or a parent class by name.
MxLong HandleClick() override
[AI] Handles when the player clicks or interacts with the jetski.
void Exit() override
[AI] Handles jetski exit logic for the player, including hand-off to other actors,...
void Animate(float p_time) override
[AI] Updates jetski state for the current animation frame, including world speed, dashboard,...
virtual MxU8 GetActorId()
[AI] Gets this actor's numeric ID, corresponding to a known enumeration/actor.
MxResult FUN_10060dc0(MxU32 p_objectId, MxMatrix *p_matrix, MxBool p_param3, MxU8 p_param4, LegoROI *p_roi, MxBool p_param6, MxBool p_param7, MxBool p_param8, MxBool p_param9)
[AI] Helper for starting a specific animation, including world matrix and camera settings.
@ e_unk0
[AI] Unknown/unspecified play mode
MxResult FUN_10064670(Vector3 *p_position)
[AI] Activates special triggered animation in response to player position near given point.
void FUN_1005f6d0(MxBool p_unk0x400)
[AI] Enables or disables extras (extra actors).
[AI] Notification parameter for the LegoControlManager, used to propagate information about control e...
MxS32 m_clickedObjectId
[AI] Object ID of the clicked control/presenter (or -1 if not set). [AI]
MxS16 m_unk0x28
[AI] Undetermined; settable via SetUnknown0x28. [AI]
void Register(MxCore *p_listener)
[AI] Adds a listener to be notified of control events.
void Unregister(MxCore *p_listener)
[AI] Removes a listener so it no longer receives control events.
LegoROI * GetROI()
[AI] Gets the ROI (Realtime Object Instance) associated with this entity. [AI]
MxFloat m_worldSpeed
[AI] World-relative speed (can affect animation/movement logic). [AI]
Area m_currentArea
Area/world the player is presently in. [AI].
LegoState * GetState(const char *p_stateName)
Find an existing state (LegoState-derived) object by its registered script/class name.
@ e_infomain
Information Center, main screen. [AI].
@ e_unk66
Used for some spawn locations. [AI].
@ e_jetraceExterior
Jetski race transition? [AI].
@ e_jetski
Jetski (vehicle, spawn). [AI].
MxFloat GetMaxLinearVel()
[AI] Returns the current maximum linear velocity (units per sec).
[AI] An actor that moves along a predefined path, supporting boundary transitions,...
virtual void Animate(float p_time)
[AI] Per-frame animation update.
virtual void Add(MxCore *p_object)
Adds an object (entity, presenter, ROI, etc.) to the appropriate world-managed list or set.
virtual void TranslateBy(const float &p_x, const float &p_y, const float &p_z)
Applies translation by amounts along X, Y, Z axes.
[AI] Represents an action deserialized from SI chunks, holding key animation or script parameters suc...
void SetObjectId(MxU32 p_objectId)
[AI] Sets the object id (for serialization or lookup).
[AI] Represents a 4x4 transformation matrix, specialized for the LEGO Island engine and derived from ...
MxResult StartTransition(TransitionType p_animationType, MxS32 p_speed, MxBool p_doCopy, MxBool p_playMusicInAnim)
[AI] Begins a new transition animation of type p_animationType at the specified speed,...
@ e_mosaic
[AI] Complex mosaic block-out effect.
void SetVariable(const char *p_key, const char *p_value)
Sets a variable by key and value, replacing or updating if it exists.
const Matrix4 & GetLocal2World() const
Accessor for the current local-to-world transformation matrix.
#define DECOMP_SIZE_ASSERT(T, S)
const char * g_varJSWNSHY5
const char * g_varJSFRNTY5
#define NULL
[AI] Null pointer value (C/C++ semantics).
void EnableAnimations(MxBool p_enable)
[AI] Enables or disables animation playback globally.
void InvokeAction(Extra::ActionType p_actionId, const MxAtomId &p_pAtom, MxS32 p_streamId, LegoEntity *p_sender)
[AI] Dispatches and triggers a game action on the given script or object.
MxBool RemoveFromCurrentWorld(const MxAtomId &p_atomId, MxS32 p_id)
[AI] Removes an entity or presenter with specified AtomId and ID from the current world; triggers End...
MxBool FUN_1003ef60()
[AI] Determines if the current actor can exit their area, based on state/zone/vehicle.
void PlayCamAnim(LegoPathActor *p_actor, MxBool p_unused, MxU32 p_location, MxBool p_bool)
[AI] Initiates a camera animation for a specific path actor, or falls back to default animation trigg...
MxAtomId * g_isleScript
[AI] Node used in hierarchical scene graphs and animation trees. [AI]
const char * g_varJETSPEED
[AI] Global variable key for the jet vehicle's speed.
const char * g_varJETFUEL
[AI] Global variable key for the jet vehicle's fuel amount.
LegoGameState * GameState()
[AI] Accessor for the game's central game state controller. [AI]
LegoAnimationManager * AnimationManager()
[AI] Accessor for the animation manager, which controls Lego character/world animation state....
MxTransitionManager * TransitionManager()
[AI] Accessor for the MxTransitionManager, handling level transitions, fades, and world changes....
MxDSAction & GetCurrentAction()
[AI] Accessor for the currently running MxDSAction (e.g.
LegoControlManager * ControlManager()
[AI] Accessor for the control manager through the input manager; manages higher-level user/game contr...
LegoWorld * CurrentWorld()
[AI] Accessor for the currently active LegoWorld instance. [AI]
void FUN_10015820(MxBool p_disable, MxU16 p_flags)
[AI] Utility for enabling or disabling functionality in LegoOmni based on certain flags.
LegoNavController * NavController()
[AI] Accessor for the navigation controller, managing player/camera navigation. [AI]
void PlayMusic(JukeboxScript::Script p_objectId)
[AI] Starts music playback by scripting the background audio manager to play the music piece referenc...
LegoPathActor * UserActor()
[AI] Accessor for the user (player-controllable) LegoPathActor. [AI]
void SetIsWorldActive(MxBool p_isWorldActive)
[AI] Toggles whether the world should be considered active (enables/disables camera/user control etc)...
MxVariableTable * VariableTable()
[AI] Returns the variable table used for script variables and global key/value state.
@ c_JetskiRace_Music
[AI] Music for the Jetski race event.
[AI] Contains global script AtomId pointers and utility functions for managing script AtomIds in LEGO...