summaryrefslogtreecommitdiff
path: root/src/animation.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-08-01 19:05:34 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-08-01 19:05:34 +0000
commit8714de88fe9715b5a4014f16d15bc55f8860cdcf (patch)
tree9bd100d9d50bcf1357be375ba7b61fd4d136ce54 /src/animation.h
parent7b599fad6cdbaa40f1cb496218dcd5546de7f520 (diff)
downloadmana-client-8714de88fe9715b5a4014f16d15bc55f8860cdcf.tar.gz
mana-client-8714de88fe9715b5a4014f16d15bc55f8860cdcf.tar.bz2
mana-client-8714de88fe9715b5a4014f16d15bc55f8860cdcf.tar.xz
mana-client-8714de88fe9715b5a4014f16d15bc55f8860cdcf.zip
animations and directions are now passed and stored as enums and no longer as strings.
Diffstat (limited to 'src/animation.h')
-rw-r--r--src/animation.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/animation.h b/src/animation.h
index fe227637..f2c40194 100644
--- a/src/animation.h
+++ b/src/animation.h
@@ -26,7 +26,6 @@
#include <list>
#include <map>
-#include <string>
#include <libxml/tree.h>
@@ -102,14 +101,14 @@ class Action
getSpriteset() const { return mSpriteset; }
void
- setAnimation(const std::string& direction, Animation *animation);
+ setAnimation(int direction, Animation *animation);
Animation*
- getAnimation(const std::string& direction) const;
+ getAnimation(int direction) const;
protected:
Spriteset *mSpriteset;
- typedef std::map<std::string, Animation*> Animations;
+ typedef std::map<int, Animation*> Animations;
typedef Animations::iterator AnimationIterator;
Animations mAnimations;
};