summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-19 15:21:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-19 15:21:11 +0300
commitad3ee95f90bfd368a511407c13718b900e44be0f (patch)
treef3f41b9802d684d784b7cef05e0d6ae2383b5e5b /src/resources/spritedef.h
parentfba4289e53447a09dcf82211e2dab3563e2581f1 (diff)
downloadmv-ad3ee95f90bfd368a511407c13718b900e44be0f.tar.gz
mv-ad3ee95f90bfd368a511407c13718b900e44be0f.tar.bz2
mv-ad3ee95f90bfd368a511407c13718b900e44be0f.tar.xz
mv-ad3ee95f90bfd368a511407c13718b900e44be0f.zip
Move spritedirection into separate file.
Diffstat (limited to 'src/resources/spritedef.h')
-rw-r--r--src/resources/spritedef.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h
index d20865c68..7e31fe1da 100644
--- a/src/resources/spritedef.h
+++ b/src/resources/spritedef.h
@@ -25,6 +25,8 @@
#include "resources/resource.h"
+#include "resources/spritedirection.h"
+
#include "utils/stringvector.h"
#include "utils/xml.h"
@@ -36,20 +38,6 @@ class Action;
class Animation;
class ImageSet;
-enum SpriteDirection
-{
- DIRECTION_DEFAULT = 0,
- DIRECTION_UP = 1,
- DIRECTION_DOWN = 2,
- DIRECTION_LEFT = 3,
- DIRECTION_RIGHT = 4,
- DIRECTION_UPLEFT = 5,
- DIRECTION_UPRIGHT = 6,
- DIRECTION_DOWNLEFT = 7,
- DIRECTION_DOWNRIGHT = 8,
- DIRECTION_INVALID
-};
-
/**
* Defines a class to load an animation.
*/
@@ -76,7 +64,7 @@ class SpriteDef final : public Resource
/**
* Converts a string into a SpriteDirection enum.
*/
- static SpriteDirection
+ static SpriteDirection::Type
makeSpriteDirection(const std::string &direction) A_WARN_UNUSED;
void addAction(const unsigned hp, const std::string &name,