aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/game.h
diff options
context:
space:
mode:
authorStrangerke2012-09-01 01:05:22 +0200
committerStrangerke2012-09-01 01:05:22 +0200
commit8c753c96a097c3b6e67b061470606278a0d8f102 (patch)
tree8c1f917ea530283f633fee7e5d210d9e171d1ace /engines/tony/game.h
parentf2df769aab10e719cc4fba6cb71e1500eb3acae4 (diff)
downloadscummvm-rg350-8c753c96a097c3b6e67b061470606278a0d8f102.tar.gz
scummvm-rg350-8c753c96a097c3b6e67b061470606278a0d8f102.tar.bz2
scummvm-rg350-8c753c96a097c3b6e67b061470606278a0d8f102.zip
TONY: Move some functions from .h to .cpp files
Diffstat (limited to 'engines/tony/game.h')
-rw-r--r--engines/tony/game.h44
1 files changed, 15 insertions, 29 deletions
diff --git a/engines/tony/game.h b/engines/tony/game.h
index 626ec73afb..bb6a356f0a 100644
--- a/engines/tony/game.h
+++ b/engines/tony/game.h
@@ -53,8 +53,18 @@ namespace Tony {
(buf8)->init(*raw, raw->width(), raw->height(), true); \
delete raw;
-
class RMPointer {
+public:
+ enum PointerType {
+ PTR_NONE = 0,
+ PTR_ARROWUP,
+ PTR_ARROWDOWN,
+ PTR_ARROWLEFT,
+ PTR_ARROWRIGHT,
+ PTR_ARROWMAP,
+ PTR_CUSTOM
+ };
+
private:
RMGfxSourceBuffer8 *_pointer[16];
RMPoint _hotspot[16];
@@ -68,17 +78,6 @@ private:
RMGfxSourceBuffer8 *_nCurCustomPointer;
public:
- enum PointerType {
- PTR_NONE = 0,
- PTR_ARROWUP,
- PTR_ARROWDOWN,
- PTR_ARROWLEFT,
- PTR_ARROWRIGHT,
- PTR_ARROWMAP,
- PTR_CUSTOM
- };
-
-public:
/**
* Constructor & destructor
*/
@@ -108,32 +107,19 @@ public:
/**
* Sets a new action as current
*/
- void setAction(RMTonyAction action) {
- _nCurPointer = action;
- updateCursor();
- }
+ void setAction(RMTonyAction action);
/**
* Sets a new pointer
*/
- void setSpecialPointer(PointerType ptr) {
- _nCurSpecialPointer = ptr;
- if (_nCurSpecialPointer && _nCurSpecialPointer != PTR_CUSTOM)
- _specialPointer[ptr - 1]->setPattern(1);
+ void setSpecialPointer(PointerType ptr);
- updateCursor();
- }
- PointerType getSpecialPointer() {
- return (PointerType)_nCurSpecialPointer;
- }
+ PointerType getSpecialPointer();
/**
* Set the new custom pointer
*/
- void setCustomPointer(RMGfxSourceBuffer8 *ptr) {
- _nCurCustomPointer = ptr;
- updateCursor();
- }
+ void setCustomPointer(RMGfxSourceBuffer8 *ptr);
/**
* Return the current action to be applied according to the pointer