aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/viewmgr.h
diff options
context:
space:
mode:
authorPaul Gilbert2010-01-30 09:21:07 +0000
committerPaul Gilbert2010-01-30 09:21:07 +0000
commit3285a4ba4d585739577176baddd8f48478d2f229 (patch)
tree86f8e10aab8e619116721398918bca88abf4ce5d /engines/m4/viewmgr.h
parent28aee9c5f3462cd72db0b91b7f578649869738d5 (diff)
downloadscummvm-rg350-3285a4ba4d585739577176baddd8f48478d2f229.tar.gz
scummvm-rg350-3285a4ba4d585739577176baddd8f48478d2f229.tar.bz2
scummvm-rg350-3285a4ba4d585739577176baddd8f48478d2f229.zip
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
Diffstat (limited to 'engines/m4/viewmgr.h')
-rw-r--r--engines/m4/viewmgr.h12
1 files changed, 6 insertions, 6 deletions
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<View *> _views;
View *_captureScreen;
@@ -157,7 +157,7 @@ private:
public:
typedef Common::List<View *>::iterator ListIterator;
- ViewManager(M4Engine *vm);
+ ViewManager(MadsM4Engine *vm);
~ViewManager();
void addView(View *view);