Isle
Loading...
Searching...
No Matches
jukeboxentity.h
Go to the documentation of this file.
1#ifndef JUKEBOXENTITY_H
2#define JUKEBOXENTITY_H
3
4#include "actionsfwd.h"
5#include "legoentity.h"
6
7// VTABLE: LEGO1 0x100da8a0
8// VTABLE: BETA10 0x101ba728
9// SIZE 0x6c
10
15class JukeBoxEntity : public LegoEntity {
16public:
24 ~JukeBoxEntity() override; // vtable+0x00
25
32 MxLong Notify(MxParam& p_param) override; // vtable+0x04
33
38 const char* ClassName() const override // vtable+0x0c
39 {
40 // STRING: LEGO1 0x100f02f0
41 return "JukeBoxEntity";
42 }
43
49 MxBool IsA(const char* p_name) const override // vtable+0x10
50 {
51 return !strcmp(p_name, JukeBoxEntity::ClassName()) || LegoEntity::IsA(p_name);
52 }
53
58 void StartAction();
59
65 void StopAction(JukeboxScript::Script p_script);
66
72
73 // SYNTHETIC: LEGO1 0x10085db0
74 // JukeBoxEntity::`scalar deleting destructor'
75
76protected:
81};
82
83#endif // JUKEBOXENTITY_H
[AI] Represents the jukebox interactive entity in LEGO Island, handling click events,...
Definition: jukeboxentity.h:15
~JukeBoxEntity() override
[AI] Destructor unregisters from the notification manager.
const char * ClassName() const override
[AI] Returns the class name of the JukeBoxEntity.
Definition: jukeboxentity.h:38
JukeBoxEntity()
[AI] Constructs the JukeBoxEntity, registering itself for notifications.
MxLong Notify(MxParam &p_param) override
[AI] Handles notification events relevant to the jukebox, e.g., click events to activate jukebox beha...
MxBool IsBackgroundAudioEnabled()
[AI] Returns whether background audio was enabled before the current jukebox action.
Definition: jukeboxentity.h:71
void StartAction()
[AI] Starts the jukebox action: plays the selected music track, sets proper animation,...
void StopAction(JukeboxScript::Script p_script)
[AI] Stops the given jukebox music and resets related animation/states.
MxBool m_audioEnabled
[AI] Whether background audio was enabled before this entity started its action.
Definition: jukeboxentity.h:80
MxBool IsA(const char *p_name) const override
[AI] Checks whether this entity matches the given class name, including parent class checks ("IsA" hi...
Definition: jukeboxentity.h:49
[AI] Represents an entity that can be placed and managed in the LEGO Island world.
Definition: legoentity.h:16
MxBool IsA(const char *p_name) const override
[AI] Polymorphic type check for this entity given a string.
Definition: legoentity.h:59
[AI] MxParam serves as a polymorphic base class for parameter passing in event and notification syste...
Definition: mxparam.h:7
#define override
Definition: compat.h:21
MxU8 MxBool
[AI]
Definition: mxtypes.h:124
int MxLong
[AI]
Definition: mxtypes.h:83