aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/statics.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-09-03 00:21:34 +0300
committerEugene Sandulenko2013-09-06 14:51:24 +0300
commiteea48b4f12f819a2bd595f3750a23998e96ee560 (patch)
tree61366ddf0c25679ffd45c4a19e8353938b09cdf1 /engines/fullpipe/statics.cpp
parent1b057ba3465ac27a1ec855d2ddfbbd730edfa9f0 (diff)
downloadscummvm-rg350-eea48b4f12f819a2bd595f3750a23998e96ee560.tar.gz
scummvm-rg350-eea48b4f12f819a2bd595f3750a23998e96ee560.tar.bz2
scummvm-rg350-eea48b4f12f819a2bd595f3750a23998e96ee560.zip
FULLPIPE: Implement Shadows::initMovement()
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r--engines/fullpipe/statics.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index c4ceaf2439..46d48d5d29 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -1348,6 +1348,22 @@ void Movement::setDynamicPhaseIndex(int index) {
gotoPrevFrame();
}
+DynamicPhase *Movement::getDynamicPhaseByIndex(int idx) {
+ debug(7, "Movement::updateCurrDynamicPhase()");
+
+ if (_currMovement) {
+ if (_currMovement->_dynamicPhases.size() == 0 || (uint)idx >= _currMovement->_dynamicPhases.size())
+ return 0;
+
+ return (DynamicPhase *)_currMovement->_dynamicPhases[idx];
+ } else {
+ if (_dynamicPhases.size() == 0 || (uint)idx >= _dynamicPhases.size())
+ return 0;
+
+ return (DynamicPhase *)_dynamicPhases[idx];
+ }
+}
+
void Movement::loadPixelData() {
Movement *mov = this;
for (Movement *i = _currMovement; i; i = i->_currMovement)