summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
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/animatedsprite.cpp
parentfba4289e53447a09dcf82211e2dab3563e2581f1 (diff)
downloadplus-ad3ee95f90bfd368a511407c13718b900e44be0f.tar.gz
plus-ad3ee95f90bfd368a511407c13718b900e44be0f.tar.bz2
plus-ad3ee95f90bfd368a511407c13718b900e44be0f.tar.xz
plus-ad3ee95f90bfd368a511407c13718b900e44be0f.zip
Move spritedirection into separate file.
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index eacdd5e8d..a68cfcdd9 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -39,7 +39,7 @@
bool AnimatedSprite::mEnableCache = false;
AnimatedSprite::AnimatedSprite(SpriteDef *const sprite):
- mDirection(DIRECTION_DOWN),
+ mDirection(SpriteDirection::DOWN),
mLastTime(0),
mFrameIndex(0),
mFrameTime(0),
@@ -303,7 +303,7 @@ void AnimatedSprite::draw(Graphics *const graphics,
posX + mFrame->offsetX, posY + mFrame->offsetY);
}
-bool AnimatedSprite::setSpriteDirection(const SpriteDirection direction)
+bool AnimatedSprite::setSpriteDirection(const SpriteDirection::Type direction)
{
if (mDirection != direction)
{