diff options
author | Strangerke | 2012-09-01 01:05:22 +0200 |
---|---|---|
committer | Strangerke | 2012-09-01 01:05:22 +0200 |
commit | 8c753c96a097c3b6e67b061470606278a0d8f102 (patch) | |
tree | 8c1f917ea530283f633fee7e5d210d9e171d1ace /engines/tony/game.cpp | |
parent | f2df769aab10e719cc4fba6cb71e1500eb3acae4 (diff) | |
download | scummvm-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.cpp')
-rw-r--r-- | engines/tony/game.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/engines/tony/game.cpp b/engines/tony/game.cpp index 3031dabf3c..3abc7a20f8 100644 --- a/engines/tony/game.cpp +++ b/engines/tony/game.cpp @@ -1571,4 +1571,35 @@ void RMPointer::updateCursor() { CursorMan.replaceCursor(cursorData, 64, 64, _cursorHotspot._x, _cursorHotspot._y, 0, 1, &pixelFormat); } +/** + * Sets a new action as current + */ +void RMPointer::setAction(RMTonyAction action) { + _nCurPointer = action; + updateCursor(); +} + +/** + * Sets a new pointer + */ +void RMPointer::setSpecialPointer(PointerType ptr) { + _nCurSpecialPointer = ptr; + if (_nCurSpecialPointer && _nCurSpecialPointer != PTR_CUSTOM) + _specialPointer[ptr - 1]->setPattern(1); + + updateCursor(); +} + +RMPointer::PointerType RMPointer::getSpecialPointer() { + return (PointerType)_nCurSpecialPointer; +} + +/** + * Set the new custom pointer + */ +void RMPointer::setCustomPointer(RMGfxSourceBuffer8 *ptr) { + _nCurCustomPointer = ptr; + updateCursor(); +} + } // End of namespace Tony |