From 51975cd8624fff3b20aa3b7b1932555e32786561 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Apr 2011 20:10:33 +0300 Subject: Add spawn animation to mobs. Also impliment sound events: SOUND_EVENT_MOVE, SOUND_EVENT_SIT, SOUND_EVENT_SPAWN --- src/resources/animation.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources/animation.h') diff --git a/src/resources/animation.h b/src/resources/animation.h index a78850b3a..9ec8396af 100644 --- a/src/resources/animation.h +++ b/src/resources/animation.h @@ -26,6 +26,7 @@ #include #include +#include class Image; @@ -38,6 +39,7 @@ struct Frame int delay; int offsetX; int offsetY; + std::string nextAction; }; /** @@ -78,6 +80,8 @@ class Animation int getDuration() const { return mDuration; } + void addJump(std::string name); + /** * Determines whether the given animation frame is a terminator. */ -- cgit v1.2.3-60-g2f50