22 #ifndef TSAGE_SCENES_H 23 #define TSAGE_SCENES_H 25 #include "common/scummsys.h" 26 #include "tsage/converse.h" 27 #include "tsage/events.h" 28 #include "tsage/core.h" 29 #include "tsage/saveload.h" 35 void drawBackgroundObjects();
38 int _activeScreenNumber;
42 Rect _backgroundBounds;
46 int _enabledSections[256];
47 int _zoomPercents[256];
56 void stripCallback(
int v)
override {}
58 void process(
Event &event)
override;
59 void dispatch()
override;
60 virtual void loadScene(
int sceneNum);
61 virtual void refreshBackground(
int xAmount,
int yAmount);
63 void setZoomPercents(
int yStart,
int minPercent,
int yEnd,
int maxPercent);
64 void loadBackground(
int xAmount,
int yAmount);
66 void loadSceneData(
int sceneNum);
71 void disposeRegions() {
91 void listenerSynchronize(
Serializer &s)
override;
92 void setNewScene(
int sceneNumber);
95 void fadeInIfNecessary();
96 void changeScene(
int newSceneNumber);
99 void removeAction(
Action *action) {
104 static void setBackSurface();
105 static void saveListener(
int saveMode);
106 static void loadNotifier(
bool postFlag);
114 virtual void handleSaveLoad(
bool saveFlag,
int &saveSlot,
Common::String &saveName);
122 virtual void start() = 0;
123 virtual void restart() {}
124 virtual void restartGame();
125 virtual void saveGame();
126 virtual void restoreGame();
127 virtual void quitGame();
128 virtual void endGame(
int resNum,
int lineNum) {}
129 virtual Scene *createScene(
int sceneNumber) = 0;
130 virtual void processEvent(
Event &event) {}
131 virtual void rightClick() {}
132 virtual bool canSaveGameStateCurrently() = 0;
133 virtual bool canLoadGameStateCurrently() = 0;
Definition: converse.h:31
Definition: graphics.h:79
Definition: saveload.h:115
Definition: blueforce_dialogs.h:30
void remove(const T &val)
Definition: list.h:125
Definition: saveload.h:63
Definition: converse.h:206
Definition: graphics.h:40
void push_back(const T &element)
Definition: list.h:140
Definition: saveload.h:90