diff options
author | Eugene Sandulenko | 2013-10-27 00:50:27 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-10-27 00:50:49 +0300 |
commit | 9f92561df3d24cec093559b733f83f69d492581f (patch) | |
tree | b09c38585f4dae91786b6fbb6f220a33c0477ea7 | |
parent | 7089444e0b862fdfab5dc63a3058374cdd55c9cb (diff) | |
download | scummvm-rg350-9f92561df3d24cec093559b733f83f69d492581f.tar.gz scummvm-rg350-9f92561df3d24cec093559b733f83f69d492581f.tar.bz2 scummvm-rg350-9f92561df3d24cec093559b733f83f69d492581f.zip |
FULLPIPE: Implement StaticANIObject::getSomeXY()
-rw-r--r-- | engines/fullpipe/statics.cpp | 13 | ||||
-rw-r--r-- | engines/fullpipe/statics.h | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index f1107e587b..0599125269 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -649,6 +649,19 @@ Common::Point *StaticANIObject::getCurrDimensions(Common::Point &p) { return &p; } +Common::Point *StaticANIObject::getSomeXY(Common::Point &p) { + if (_movement) { + _movement->getCurrDynamicPhaseXY(p); + + return &p; + } + + if (_statics) + _statics->getSomeXY(p); + + return &p; +} + void StaticANIObject::update(int counterdiff) { int mqid; diff --git a/engines/fullpipe/statics.h b/engines/fullpipe/statics.h index 370f540792..49ebc8edf7 100644 --- a/engines/fullpipe/statics.h +++ b/engines/fullpipe/statics.h @@ -204,6 +204,8 @@ class StaticANIObject : public GameObject { Movement *getMovementByName(char *name); Common::Point *getCurrDimensions(Common::Point &p); + Common::Point *getSomeXY(Common::Point &p); + void clearFlags(); void setFlags40(bool state); bool isIdle(); |