aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2017-12-08 21:25:32 +0000
committerEugene Sandulenko2017-12-08 23:57:48 +0100
commit7724e51936fc006a48ded3efd28b9caf20c5bc7e (patch)
tree5cd48a26f9265475c98a7abd83cfb1902e936647 /engines/fullpipe
parent1408ffc4273945abc882033b9aabde82b3d2f841 (diff)
downloadscummvm-rg350-7724e51936fc006a48ded3efd28b9caf20c5bc7e.tar.gz
scummvm-rg350-7724e51936fc006a48ded3efd28b9caf20c5bc7e.tar.bz2
scummvm-rg350-7724e51936fc006a48ded3efd28b9caf20c5bc7e.zip
FULLPIPE: Added debug output for GameObject
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/gfx.cpp5
-rw-r--r--engines/fullpipe/gfx.h1
-rw-r--r--engines/fullpipe/statics.cpp11
3 files changed, 11 insertions, 6 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 667c2ba190..31e5c219c4 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -234,6 +234,11 @@ GameObject::GameObject(GameObject *src) {
_field_8 = src->_field_8;
}
+Common::String GameObject::toXML() {
+ return Common::String::format("id=%d name=\"%s\" x=%d y=%d priority=%d f8=%d",
+ _id, transCyrillic(_objectName), _ox, _oy, _priority, _field_8);
+}
+
bool GameObject::load(MfcArchive &file) {
debugC(5, kDebugLoading, "GameObject::load()");
_odelay = 0;
diff --git a/engines/fullpipe/gfx.h b/engines/fullpipe/gfx.h
index a2c83c8131..04771f5991 100644
--- a/engines/fullpipe/gfx.h
+++ b/engines/fullpipe/gfx.h
@@ -154,6 +154,7 @@ class GameObject : public CObject {
GameObject();
GameObject(GameObject *src);
+ virtual Common::String toXML();
virtual bool load(MfcArchive &file);
void setOXY(int x, int y);
void renumPictures(Common::Array<StaticANIObject *> *lst);
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 5ea3b10d23..49cb3fde1f 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -163,8 +163,7 @@ bool StaticANIObject::load(MfcArchive &file) {
GameObject::load(file);
- debugC(6, kDebugXML, "%% <OLDANI id=%d name=\"%s\" x=%d y=%d priority=%d f8=%d>",
- _id, transCyrillic(_objectName), _ox, _oy, _priority, _field_8);
+ debugC(6, kDebugXML, "%% <OLDANI %s>", GameObject::toXML().c_str());
int count = file.readUint16LE();
@@ -1376,8 +1375,8 @@ bool Statics::load(MfcArchive &file) {
_staticsId = file.readUint16LE();
_staticsName = file.readPascalString();
- debugC(6, kDebugXML, "%% <STATICS id=%d name=\"%s\" f7c=%d %s />",
- _staticsId, transCyrillic(_staticsName), _field_7C, DynamicPhase::toXML().c_str());
+ debugC(6, kDebugXML, "%% <STATICS id=%d name=\"%s\" %s />",
+ _staticsId, transCyrillic(_staticsName), DynamicPhase::toXML().c_str());
_picture.load(file);
@@ -1623,8 +1622,8 @@ bool Movement::load(MfcArchive &file, StaticANIObject *ani) {
_framePosOffsets[_dynamicPhases.size() - 1].y = _m2y;
}
- debugC(6, kDebugXML, "%% <MOVEMENT id=%d name=\"%s\" x=%d y=%d priority=%d f8=%d staticsId=%d mX=%d my=%d staticsId2=%d m2x=%d m2y=%d>",
- _id, transCyrillic(_objectName), _ox, _oy, _priority, _field_8, staticsid, _mx, _my, staticsid2, _m2x, _m2y);
+ debugC(6, kDebugXML, "%% <MOVEMENT %s staticsId=%d mX=%d my=%d staticsId2=%d m2x=%d m2y=%d>",
+ GameObject::toXML().c_str(), staticsid, _mx, _my, staticsid2, _m2x, _m2y);
for (int i = 0; i < dynCount; i++)
debugC(6, kDebugXML, "%% <PHASE %s />", _dynamicPhases[i]->toXML().c_str());