summaryrefslogtreecommitdiff
path: root/src/resources/animation.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-03 20:10:33 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-03 20:10:33 +0300
commit51975cd8624fff3b20aa3b7b1932555e32786561 (patch)
tree55ff8d9c5a459bada8038807a1eaf0dfe98945e2 /src/resources/animation.h
parentfd16292e758ab6fc910ed07441e6e477d616201c (diff)
downloadManaVerse-51975cd8624fff3b20aa3b7b1932555e32786561.tar.gz
ManaVerse-51975cd8624fff3b20aa3b7b1932555e32786561.tar.bz2
ManaVerse-51975cd8624fff3b20aa3b7b1932555e32786561.tar.xz
ManaVerse-51975cd8624fff3b20aa3b7b1932555e32786561.zip
Add spawn animation to mobs.
Also impliment sound events: SOUND_EVENT_MOVE, SOUND_EVENT_SIT, SOUND_EVENT_SPAWN
Diffstat (limited to 'src/resources/animation.h')
-rw-r--r--src/resources/animation.h4
1 files changed, 4 insertions, 0 deletions
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 <libxml/tree.h>
#include <vector>
+#include <string>
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.
*/