diff options
author | Strangerke | 2011-10-20 21:52:43 +0200 |
---|---|---|
committer | Strangerke | 2011-10-20 21:52:43 +0200 |
commit | 6005a181f9ea366f395a9e039478f9c527f2e555 (patch) | |
tree | 9e86aa8d88820134e48c0c386d599630df5b7251 /engines | |
parent | c28b98aa2ab06e7fb604b534911962877d8b9198 (diff) | |
download | scummvm-rg350-6005a181f9ea366f395a9e039478f9c527f2e555.tar.gz scummvm-rg350-6005a181f9ea366f395a9e039478f9c527f2e555.tar.bz2 scummvm-rg350-6005a181f9ea366f395a9e039478f9c527f2e555.zip |
TSAGE: modify addTimer and removeTimer to use an EventHandler instead of a Timer
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/blue_force/blueforce_logic.h | 4 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes1.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/tsage/blue_force/blueforce_logic.h b/engines/tsage/blue_force/blueforce_logic.h index fc4170f112..021483c645 100644 --- a/engines/tsage/blue_force/blueforce_logic.h +++ b/engines/tsage/blue_force/blueforce_logic.h @@ -219,8 +219,8 @@ public: virtual void loadScene(int sceneNum); virtual void checkGun(); - void addTimer(Timer *timer) { _timerList.add(timer); } - void removeTimer(Timer *timer) { _timerList.remove(timer); } + void addTimer(EventHandler *timer) { _timerList.add(timer); } + void removeTimer(EventHandler *timer) { _timerList.remove(timer); } bool display(CursorType action); void fadeOut(); void gunDisplay(); diff --git a/engines/tsage/blue_force/blueforce_scenes1.cpp b/engines/tsage/blue_force/blueforce_scenes1.cpp index 33b1951143..6c5951a427 100644 --- a/engines/tsage/blue_force/blueforce_scenes1.cpp +++ b/engines/tsage/blue_force/blueforce_scenes1.cpp @@ -1260,7 +1260,7 @@ void Scene115::EventHandler1::dispatch() { if (BF_GLOBALS._player.getRegionIndex() == 27) { scene->_object1.setAction(&scene->_action5); - scene->removeTimer((Timer *)this); + scene->removeTimer(this); } } @@ -1705,7 +1705,7 @@ void Scene115::postInit(SceneObjectList *OwnerList) { _object1.fixPriority(95); BF_GLOBALS._sceneItems.push_front(&_object1); } - addTimer((Timer *)&_eventHandler1); + addTimer(&_eventHandler1); } BF_GLOBALS._sceneItems.push_front(&_object2); @@ -1716,7 +1716,7 @@ void Scene115::postInit(SceneObjectList *OwnerList) { BF_GLOBALS._sceneItems.push_front(&_item14); _item10.setDetails(Rect(0, 147, 30, 167), 115, -1, -1, -1, 1, NULL); // SUB_177B8 - addTimer((Timer *)&_item1); + addTimer(&_item1); _item1.setDetails(Rect(147, 45, 179, 91), 115, 25, 26, 27, 1, NULL); // _item6.setDetails(Rect(107, 43, 122, 61), 115, 28, 29, 30, 1, NULL); |