From 3285a4ba4d585739577176baddd8f48478d2f229 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 30 Jan 2010 09:21:07 +0000 Subject: Beginnings of a separation of the MADS and M4 engines into separate classes. This will be cleaner then having checks everywhere for whether the game mode is MADS or M4. svn-id: r47705 --- engines/m4/viewmgr.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/m4/viewmgr.h') diff --git a/engines/m4/viewmgr.h b/engines/m4/viewmgr.h index 0da41f1b5e..966b29084d 100644 --- a/engines/m4/viewmgr.h +++ b/engines/m4/viewmgr.h @@ -89,7 +89,7 @@ public: struct Hotkey { public: - typedef void (*Callback)(M4Engine *vm, View *view, uint32 key); + typedef void (*Callback)(MadsM4Engine *vm, View *view, uint32 key); Hotkey(uint32 keyVal, Hotkey::Callback callbackFn) : key(keyVal), callback(callbackFn) {}; uint32 key; Hotkey::Callback callback; @@ -109,8 +109,8 @@ private: class View: public M4Surface { public: - View(M4Engine *vm, const Common::Rect &viewBounds, bool transparent = false); - View(M4Engine *vm, int x = 0, int y = 0, bool transparent = false); + View(MadsM4Engine *vm, const Common::Rect &viewBounds, bool transparent = false); + View(MadsM4Engine *vm, int x = 0, int y = 0, bool transparent = false); virtual ~View() {} void getCoordinates(Common::Rect &rect); @@ -139,7 +139,7 @@ public: virtual void updateState() {}; protected: - M4Engine *_vm; + MadsM4Engine *_vm; Common::Rect _coords; HotkeyList _hotkeys; int _screenType; @@ -149,7 +149,7 @@ protected: class ViewManager { private: - M4Engine *_vm; + MadsM4Engine *_vm; HotkeyList _systemHotkeys; Common::List _views; View *_captureScreen; @@ -157,7 +157,7 @@ private: public: typedef Common::List::iterator ListIterator; - ViewManager(M4Engine *vm); + ViewManager(MadsM4Engine *vm); ~ViewManager(); void addView(View *view); -- cgit v1.2.3