diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2006-08-01 19:05:34 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2006-08-01 19:05:34 +0000 |
commit | 8714de88fe9715b5a4014f16d15bc55f8860cdcf (patch) | |
tree | 9bd100d9d50bcf1357be375ba7b61fd4d136ce54 /src/animation.h | |
parent | 7b599fad6cdbaa40f1cb496218dcd5546de7f520 (diff) | |
download | mana-8714de88fe9715b5a4014f16d15bc55f8860cdcf.tar.gz mana-8714de88fe9715b5a4014f16d15bc55f8860cdcf.tar.bz2 mana-8714de88fe9715b5a4014f16d15bc55f8860cdcf.tar.xz mana-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.h | 7 |
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; }; |