aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova2/supernova2.h
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-05-31 12:13:47 +0200
committerThierry Crozat2019-07-28 15:09:14 +0100
commitc331b69bbd8b8ec8c99b04f9ed04ab11b1829a53 (patch)
tree8e20831a827fdfee491f89b74d78317adfb3e498 /engines/supernova2/supernova2.h
parent83b0da1ebd24c1ad0aa5f01c290f5ae2348380c4 (diff)
downloadscummvm-rg350-c331b69bbd8b8ec8c99b04f9ed04ab11b1829a53.tar.gz
scummvm-rg350-c331b69bbd8b8ec8c99b04f9ed04ab11b1829a53.tar.bz2
scummvm-rg350-c331b69bbd8b8ec8c99b04f9ed04ab11b1829a53.zip
SUPERNOVA2: Add load and save mechanism
Diffstat (limited to 'engines/supernova2/supernova2.h')
-rw-r--r--engines/supernova2/supernova2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/supernova2/supernova2.h b/engines/supernova2/supernova2.h
index 26673920fd..4fa80b5067 100644
--- a/engines/supernova2/supernova2.h
+++ b/engines/supernova2/supernova2.h
@@ -60,6 +60,10 @@ public:
~Supernova2Engine();
virtual Common::Error run();
+ virtual Common::Error loadGameState(int slot);
+ virtual bool canLoadGameStateCurrently();
+ virtual Common::Error saveGameState(int slot, const Common::String &desc);
+ virtual bool canSaveGameStateCurrently();
virtual bool hasFeature(EngineFeature f) const;
GameManager *_gm;
@@ -95,6 +99,8 @@ public:
void renderImage(int section);
void renderImage(ImageId id, bool removeImage = false);
bool setCurrentImage(int filenumber);
+ void saveScreen(int x, int y, int width, int height);
+ void saveScreen(const GuiElement &guiElement);
void restoreScreen();
void renderRoom(Room &room);
void renderMessage(const char *text, MessagePosition position = kMessageNormal);