From 9f92561df3d24cec093559b733f83f69d492581f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 27 Oct 2013 00:50:27 +0300 Subject: FULLPIPE: Implement StaticANIObject::getSomeXY() --- engines/fullpipe/statics.cpp | 13 +++++++++++++ engines/fullpipe/statics.h | 2 ++ 2 files changed, 15 insertions(+) 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(); -- cgit v1.2.3