aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/statics.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-02 09:05:18 +0300
committerEugene Sandulenko2013-09-06 14:51:23 +0300
commit7c3640b2b7017389e23a81f2f06a3ea9161b8ea2 (patch)
tree1396624756b571b83714ce9a9cd0bd6028c250ca /engines/fullpipe/statics.cpp
parentb457771b7d6645791a4ae1f44be8e42b9f3cf7eb (diff)
downloadscummvm-rg350-7c3640b2b7017389e23a81f2f06a3ea9161b8ea2.tar.gz
scummvm-rg350-7c3640b2b7017389e23a81f2f06a3ea9161b8ea2.tar.bz2
scummvm-rg350-7c3640b2b7017389e23a81f2f06a3ea9161b8ea2.zip
FULLPIPE: Some WIP debugging
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r--engines/fullpipe/statics.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index efc5c24fa5..cb4ca75689 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -184,6 +184,7 @@ bool StaticANIObject::load(MfcArchive &file) {
pt.x = pt.y = 100;
}
+ warning("%s %d", __FILE__, __LINE__);
setOXY(pt.x, pt.y);
return true;
@@ -193,8 +194,10 @@ void StaticANIObject::setOXY(int x, int y) {
_ox = x;
_oy = y;
- if (_movement)
+ if (_movement) {
+ warning("%s %d", __FILE__, __LINE__);
_movement->setOXY(x, y);
+ }
}
void StaticANIObject::clearFlags() {
@@ -674,6 +677,7 @@ void StaticANIObject::update(int counterdiff) {
if (!_movement->gotoNextFrame(_callback1, _callback2)) {
stopAnim_maybe();
} else {
+ warning("%s %d", __FILE__, __LINE__);
setOXY(_movement->_ox, _movement->_oy);
_counter = _initialCounter;
@@ -691,8 +695,8 @@ void StaticANIObject::update(int counterdiff) {
return;
_stepArray.getCurrPoint(&point);
+ warning("%s %d", __FILE__, __LINE__);
setOXY(point.x + _ox, point.y + _oy);
- warning("%d %d %d %d", _ox, point.x, _oy, point.y);
_stepArray.gotoNextPoint();
if (_someDynamicPhaseIndex == _movement->_currDynamicPhaseIndex)
adjustSomeXY();
@@ -705,6 +709,7 @@ void StaticANIObject::update(int counterdiff) {
Common::Point pointS;
_statics->getSomeXY(pointS);
+ warning("%s %d", __FILE__, __LINE__);
_movement->setOXY(_ox + point.x + _movement->_mx - pointS.x,
_oy + point.y + _movement->_my - pointS.y);
}
@@ -738,6 +743,7 @@ void StaticANIObject::stopAnim_maybe() {
Common::Point point;
if (_movement) {
+ warning("%s %d", __FILE__, __LINE__);
setOXY(_movement->_ox, _movement->_oy);
if (_flags & 0x40) {
@@ -806,6 +812,7 @@ bool StaticANIObject::setPicAniInfo(PicAniInfo *picAniInfo) {
debug(0, "StaticANIObject::setPicAniInfo() (%s [%d]) type: %d, statid: %d, movid: %d", transCyrillic((byte *)_objectName), _id, picAniInfo->type, picAniInfo->staticsId, picAniInfo->movementId);
if (picAniInfo->type & 3) {
+ warning("%s %d", __FILE__, __LINE__);
setOXY(picAniInfo->ox, picAniInfo->oy);
_priority = picAniInfo->priority;
_okeyCode = picAniInfo->field_8;
@@ -861,8 +868,10 @@ void StaticANIObject::show1(int x, int y, int movId, int mqId) {
if (movId == -1) {
_flags |= 4u;
- if (x != -1 && y != -1)
+ if (x != -1 && y != -1) {
+ warning("%s %d", __FILE__, __LINE__);
setOXY(x, y);
+ }
return;
}
@@ -871,8 +880,10 @@ void StaticANIObject::show1(int x, int y, int movId, int mqId) {
if (!mov)
return;
- if (x != -1 && y != -1)
+ if (x != -1 && y != -1) {
+ warning("%s %d", __FILE__, __LINE__);
setOXY(x, y);
+ }
_statics = mov->_staticsObj1;
@@ -1006,6 +1017,7 @@ bool StaticANIObject::startAnim(int movementId, int messageQueueId, int dynPhase
debug(0, "4 %d %d", newx, newy);
_movement->getCurrDynamicPhaseXY(point);
+ warning("%s %d", __FILE__, __LINE__);
setOXY(point.x + newx, point.y + newy);
debug(0, " StaticANIObject::startAnim(%d, %d, %d) (%s [%d]) [%d, %d]", movementId, messageQueueId, dynPhaseIdx, transCyrillic((byte *)_objectName), _id, _ox, _oy);