From eb3667d7c9efcefe3a9e4e57edc3aefa603d6416 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 27 Jan 2011 13:27:58 +0000 Subject: GOB: Implement backuping of sprites, sounds, fonts in totSub svn-id: r55565 --- engines/gob/game.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'engines/gob/game.h') diff --git a/engines/gob/game.h b/engines/gob/game.h index 186afdee1a..7f8bf67153 100644 --- a/engines/gob/game.h +++ b/engines/gob/game.h @@ -27,6 +27,8 @@ #define GOB_GAME_H #include "gob/util.h" +#include "gob/video.h" +#include "gob/sound/sounddesc.h" namespace Gob { @@ -53,6 +55,10 @@ public: void clear(); + bool setMedia(uint8 env); + bool getMedia(uint8 env); + bool clearMedia(uint8 env); + private: struct Environment { int32 cursorHotspotX; @@ -63,9 +69,16 @@ private: Resources *resources; }; + struct Media { + SurfacePtr sprites[10]; + SoundDesc sounds[10]; + Font *fonts[17]; + }; + GobEngine *_vm; Environment _environments[kEnvironmentCount]; + Media _media[kEnvironmentCount]; }; class Game { -- cgit v1.2.3