From c1cc230e4b41c9e6fff7b531158e50d0bc18a57a Mon Sep 17 00:00:00 2001 From: Robert Špalek Date: Sun, 1 Nov 2009 12:57:06 +0000 Subject: Debugged computation and displaying of optimal walking paths svn-id: r45597 --- engines/draci/animation.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/draci/animation.cpp') 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; -- cgit v1.2.3