Isle
|
[AI] Handles and stores state for the in-game radio, including track playlists, cycling, and active status. More...
#include <radio.h>
Public Member Functions | |
RadioState () | |
[AI] Constructs a new RadioState, randomizing playlist indices and initial state. More... | |
MxBool | IsSerializable () override |
[AI] Radio state is not serializable, i.e., not written to save files. More... | |
const char * | ClassName () const override |
[AI] Returns the runtime class name for RadioState. More... | |
MxBool | IsA (const char *p_name) const override |
[AI] Checks if the given type name matches this class or any parent class. More... | |
MxBool | IsActive () |
[AI] Indicates whether the radio is currently playing. More... | |
void | SetActive (MxBool p_active) |
[AI] Sets active status of the radio. More... | |
undefined4 | FUN_1002d090 () |
[AI] Cycles to the next playlist and returns the next object ID to play. More... | |
MxBool | FUN_1002d0c0 (const MxAtomId &p_atom, MxU32 p_objectId) |
[AI] Checks if the given atom/object ID matches one of the radio's playlists. 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 | |
Playlist | m_unk0x08 [3] |
[AI] Radio playlists. Each is a collection of track IDs used by the radio (effects, dialogue, music). More... | |
MxS16 | m_unk0x2c |
[AI] Index for cycling among the three playlists (0-2). More... | |
MxBool | m_active |
[AI] If TRUE, the radio is playing; FALSE otherwise. More... | |
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... | |
[AI] Handles and stores state for the in-game radio, including track playlists, cycling, and active status.
[AI] Three playlists are used: one for sound effects, one for dialogue, and one for radio music. The state also tracks the currently playing playlist and handles serializability and RTTI. []
RadioState::RadioState | ( | ) |
[AI] Constructs a new RadioState, randomizing playlist indices and initial state.
|
inlineoverridevirtual |
[AI] Returns the runtime class name for RadioState.
Reimplemented from LegoState.
MxU32 RadioState::FUN_1002d090 | ( | ) |
|
inlineoverridevirtual |
[AI] Checks if the given type name matches this class or any parent class.
p_name | Class name to check against [AI] |
[AI] Compares against RadioState's name or falls back on LegoState::IsA
Reimplemented from LegoState.
|
inline |
|
inlineoverridevirtual |
|
inline |
MxBool RadioState::m_active |
Playlist RadioState::m_unk0x08[3] |
MxS16 RadioState::m_unk0x2c |