aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/aniobject.cpp4
-rw-r--r--engines/gob/aniobject.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/gob/aniobject.cpp b/engines/gob/aniobject.cpp
index c689145b75..a01fe43672 100644
--- a/engines/gob/aniobject.cpp
+++ b/engines/gob/aniobject.cpp
@@ -63,6 +63,10 @@ void ANIObject::setAnimation(uint16 animation) {
_frame = 0;
}
+void ANIObject::rewind() {
+ _frame = 0;
+}
+
void ANIObject::setPosition() {
if (_animation >= _ani->getAnimationCount())
return;
diff --git a/engines/gob/aniobject.h b/engines/gob/aniobject.h
index dfadf79b06..28103007a6 100644
--- a/engines/gob/aniobject.h
+++ b/engines/gob/aniobject.h
@@ -72,6 +72,9 @@ public:
/** Set the animation number. */
void setAnimation(uint16 animation);
+ /** Rewind the current animation to the first frame. */
+ void rewind();
+
/** Return the current animation number. */
uint16 getAnimation() const;
/** Return the current frame number. */