aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/statics.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-08-19 23:19:00 +0300
committerEugene Sandulenko2013-09-06 14:51:16 +0300
commitf0795656929e09e74f85c427cbf506e35eefc44f (patch)
tree3e32cce13cd75e6b8bdcf28790f11a2521da4d9a /engines/fullpipe/statics.cpp
parent5e21cefa72c25fa8695b3be323367411e1e7bd28 (diff)
downloadscummvm-rg350-f0795656929e09e74f85c427cbf506e35eefc44f.tar.gz
scummvm-rg350-f0795656929e09e74f85c427cbf506e35eefc44f.tar.bz2
scummvm-rg350-f0795656929e09e74f85c427cbf506e35eefc44f.zip
FULLPIPE: Implement global_messageHandler2()
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r--engines/fullpipe/statics.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index a6e9d3ab0a..ce782d1d48 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -201,6 +201,15 @@ void StaticANIObject::clearFlags() {
_stepArray.clear();
}
+void StaticANIObject::setFlags40(bool state) {
+ if (state) {
+ _flags |= 0x40;
+ } else {
+ if (_flags & 0x40)
+ _flags ^= 0x40;
+ }
+}
+
void StaticANIObject::deleteFromGlobalMessageQueue() {
while (_messageQueueId) {
if (g_fullpipe->_globalMessageQueueList->getMessageQueueById(_messageQueueId)) {
@@ -1216,8 +1225,8 @@ void Movement::removeFirstPhase() {
_updateFlag1 = 0;
}
-bool Movement::gotoNextFrame(int callback1, int callback2) {
- debug(8, "Movement::gotoNextFrame(%d, %d)", callback1, callback2);
+bool Movement::gotoNextFrame(int callback1, void (*callback2)(int *)) {
+ debug(8, "Movement::gotoNextFrame()");
if (!callback2) {
if (_currMovement) {
@@ -1250,7 +1259,7 @@ bool Movement::gotoNextFrame(int callback1, int callback2) {
int oldDynIndex = _currDynamicPhaseIndex;
if (callback2)
- ; //callback2(&_currDynamicPhaseIndex);
+ callback2(&_currDynamicPhaseIndex);
else
_currDynamicPhaseIndex++;