22 #ifndef NANCY_STATE_MAP_H 23 #define NANCY_STATE_MAP_H 25 #include "common/singleton.h" 27 #include "engines/nancy/sound.h" 28 #include "engines/nancy/video.h" 30 #include "engines/nancy/state/state.h" 32 #include "engines/nancy/ui/animatedbutton.h" 33 #include "engines/nancy/ui/ornaments.h" 47 enum State { kInit, kLoad, kRun, kExit };
49 virtual ~
Map() =
default;
51 void process()
override;
52 void onStateEnter(
const NancyState::NancyState prevState)
override;
53 bool onStateExit(
const NancyState::NancyState nextState)
override;
64 void updateGraphics()
override;
67 void playVideo() { _decoder.start(); }
68 void unloadVideo() { _decoder.close(); }
74 virtual void init() = 0;
76 virtual void run() = 0;
77 virtual void registerGraphics();
79 void setLabel(
int labelID);
90 int16 _pickedLocationID;
96 friend class MapGlobe;
100 virtual ~
TVDMap() =
default;
105 MapGlobe(uint zOrder,
TVDMap *owner) : AnimatedButton(zOrder), _gargoyleEyes(zOrder), _owner(owner) {}
106 virtual ~MapGlobe() =
default;
108 void init()
override;
109 void registerGraphics()
override;
110 void onClick()
override;
111 void onTrigger()
override;
118 void init()
override;
119 void load()
override;
121 void registerGraphics()
override;
123 bool onStateExit(
const NancyState::NancyState nextState)
override;
135 void init()
override;
136 void load()
override;
138 void registerGraphics()
override;
140 bool onStateExit(
const NancyState::NancyState next)
override;
145 #define NancyMapState Nancy::State::Map::instance() 157 #endif // NANCY_STATE_MAP_H
Definition: enginedata.h:176
Definition: soundequalizerpuzzle.h:27
Definition: renderobject.h:36
Definition: ornaments.h:30
Definition: algorithm.h:29
Definition: commontypes.h:254
Definition: actionmanager.h:32
Definition: singleton.h:42