diff options
author | Paul Gilbert | 2010-02-17 11:37:17 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-02-17 11:37:17 +0000 |
commit | bf82639c04ccc4508a605f263d844138f6d22a6b (patch) | |
tree | 9d304fbfe846de37139a645080bc7d578697aa28 /engines/m4/scene.h | |
parent | 2d03db8a203a8628a2e55c25ad8c1ab0cb47d503 (diff) | |
download | scummvm-rg350-bf82639c04ccc4508a605f263d844138f6d22a6b.tar.gz scummvm-rg350-bf82639c04ccc4508a605f263d844138f6d22a6b.tar.bz2 scummvm-rg350-bf82639c04ccc4508a605f263d844138f6d22a6b.zip |
Implemented player sprite loading portion of scene enter code
svn-id: r48076
Diffstat (limited to 'engines/m4/scene.h')
-rw-r--r-- | engines/m4/scene.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/m4/scene.h b/engines/m4/scene.h index d97d43de0d..b0f97ff1a5 100644 --- a/engines/m4/scene.h +++ b/engines/m4/scene.h @@ -36,6 +36,7 @@ class View; #include "m4/m4_views.h" #include "m4/mads_logic.h" #include "m4/mads_views.h" +#include "common/array.h" namespace M4 { @@ -101,6 +102,7 @@ public: // Methods that differ between engines virtual void loadScene(int sceneNumber); + virtual void leaveScene(); virtual void loadSceneCodes(int sceneNumber, int index = 0) = 0; virtual void show(); virtual void checkHotspotAtMousePos(int x, int y) = 0; @@ -146,6 +148,7 @@ public: // Methods that differ between engines virtual void loadScene(int sceneNumber); + virtual void leaveScene() {}; virtual void loadSceneCodes(int sceneNumber, int index = 0); virtual void show(); virtual void checkHotspotAtMousePos(int x, int y); @@ -158,6 +161,8 @@ public: M4InterfaceView *getInterface() { return (M4InterfaceView *)_interfaceSurface; }; }; +typedef Common::Array<SpriteAsset *> SpriteAssetArray; + class MadsScene : public Scene { private: MadsEngine *_vm; @@ -166,15 +171,15 @@ private: char _statusText[100]; MadsSceneLogic _sceneLogic; SpriteAsset *_playerSprites; + SpriteAssetArray _sceneSprites; public: - char _playerSpriteName[100]; char _aaName[100]; public: MadsScene(MadsEngine *vm); - virtual ~MadsScene() {}; // Methods that differ between engines virtual void loadScene(int sceneNumber); + virtual void leaveScene(); virtual void loadSceneCodes(int sceneNumber, int index = 0); virtual void show(); virtual void checkHotspotAtMousePos(int x, int y); @@ -184,6 +189,8 @@ public: virtual void setStatusText(const char *text); virtual void update(); + void loadPlayerSprites(const char *prefix); + MadsInterfaceView *getInterface() { return (MadsInterfaceView *)_interfaceSurface; }; }; |