aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/game.h
diff options
context:
space:
mode:
authorDenis Kasak2009-07-18 01:11:45 +0000
committerDenis Kasak2009-07-18 01:11:45 +0000
commit8e1f29630869481f88911476d900f421fa0c2164 (patch)
treeac34409f6c37693cad52c74af4a4a3bc37511bf1 /engines/draci/game.h
parentaa82c39857513525d5212b543f4438f916409250 (diff)
downloadscummvm-rg350-8e1f29630869481f88911476d900f421fa0c2164.tar.gz
scummvm-rg350-8e1f29630869481f88911476d900f421fa0c2164.tar.bz2
scummvm-rg350-8e1f29630869481f88911476d900f421fa0c2164.zip
Removed room switching hack from Mouse and re-added it to DraciEngine::go() (right arrow switches to the next room, left to the previous.
svn-id: r42577
Diffstat (limited to 'engines/draci/game.h')
-rw-r--r--engines/draci/game.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/draci/game.h b/engines/draci/game.h
index 276efa1356..0c3dddae20 100644
--- a/engines/draci/game.h
+++ b/engines/draci/game.h
@@ -135,6 +135,7 @@ struct Room {
class Game {
public:
+
Game(DraciEngine *vm);
~Game();
@@ -142,11 +143,10 @@ public:
void loop();
void changeRoom(uint roomNum);
-
int getRoomNum();
// HACK: this is only for testing
- void incRoomNum() {
+ int nextRoomNum() {
int n = _currentRoom._roomNum;
n = n < 37 ? n+1 : n;
@@ -154,11 +154,11 @@ public:
if (n == 30)
++n;
- _currentRoom._roomNum = n;
+ return n;
}
// HACK: same as above
- void decRoomNum() {
+ int prevRoomNum() {
int n = _currentRoom._roomNum;
n = n > 0 ? n-1 : n;
@@ -166,7 +166,7 @@ public:
if (n == 30)
--n;
- _currentRoom._roomNum = n;
+ return n;
}
void loadRoom(int roomNum);