Isle
|
[AI] Represents the music selection state for the Jukebox in the game. More...
#include <jukebox.h>
Public Types | |
enum | Music { e_pasquell = 0 , e_right , e_decal , e_wallis , e_nelson , e_torpedos } |
[AI] Enumeration for Jukebox music tracks. Used to identify the currently selected music piece. [AI] More... | |
![]() | |
enum | ScoreColor { e_grey = 0 , e_yellow , e_blue , e_red } |
[AI] Score coloring values for in-game display feedback or logic. More... | |
Public Member Functions | |
JukeBoxState () | |
[AI] Creates a new JukeBoxState with default music e_pasquell and inactive. [AI] More... | |
MxBool | IsSerializable () override |
[AI] JukeBoxState is never serialized—used only during gameplay session. [AI] More... | |
const char * | ClassName () const override |
[AI] Returns the class name "JukeBoxState" for run-time type identification. [AI] More... | |
MxBool | IsA (const char *p_name) const override |
[AI] Checks if the object is or derives from the class specified by p_name. 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 | |
Music | m_music |
[AI] Currently selected music track in the Jukebox. [AI] More... | |
MxU32 | m_active |
[AI] Flag indicating whether the Jukebox is currently active (1=active, 0=inactive). [AI] More... | |
[AI] Represents the music selection state for the Jukebox in the game.
Inherits from LegoState to support state saving/restoration architecture. Holds information about which song is currently selected and whether the Jukebox is active. [AI]
[AI] JukeBoxState manages which song is currently playing in the Jukebox area of the game. The state is not serializable as it is only relevant during gameplay. The Music enum identifies which track is selected. [AI]
enum JukeBoxState::Music |
[AI] Enumeration for Jukebox music tracks. Used to identify the currently selected music piece. [AI]
|
inline |
[AI] Creates a new JukeBoxState with default music e_pasquell and inactive. [AI]
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
[AI] JukeBoxState is never serialized—used only during gameplay session. [AI]
Reimplemented from LegoState.
MxU32 JukeBoxState::m_active |
Music JukeBoxState::m_music |