aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/animation.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-11-01 12:57:06 +0000
committerRobert Špalek2009-11-01 12:57:06 +0000
commitc1cc230e4b41c9e6fff7b531158e50d0bc18a57a (patch)
tree1404ac074fc40d4dc3afa13811c58669d3eeec86 /engines/draci/animation.cpp
parent5c7a120471000a1e048c5bc7688af77e95886caa (diff)
downloadscummvm-rg350-c1cc230e4b41c9e6fff7b531158e50d0bc18a57a.tar.gz
scummvm-rg350-c1cc230e4b41c9e6fff7b531158e50d0bc18a57a.tar.bz2
scummvm-rg350-c1cc230e4b41c9e6fff7b531158e50d0bc18a57a.zip
Debugged computation and displaying of optimal walking paths
svn-id: r45597
Diffstat (limited to 'engines/draci/animation.cpp')
-rw-r--r--engines/draci/animation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp
index a0f983100b..560f03ffcf 100644
--- a/engines/draci/animation.cpp
+++ b/engines/draci/animation.cpp
@@ -163,6 +163,11 @@ void Animation::addFrame(Drawable *frame, const SoundSample *sample) {
_samples.push_back(sample);
}
+void Animation::replaceFrame(int i, Drawable *frame, const SoundSample *sample) {
+ _frames[i] = frame;
+ _samples[i] = sample;
+}
+
Drawable *Animation::getCurrentFrame() {
// If there are no frames stored, return NULL
return _frames.size() > 0 ? _frames[_currentFrame] : NULL;