summaryrefslogtreecommitdiff
path: root/src/animatedsprite.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-09-29 23:59:08 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-09-29 23:59:08 +0000
commite8f94fe7ca5e7e7838eaa84f1792b4b42b4bada3 (patch)
treee8dc775e12f6b4eb0a6d56448f05286c774bbb8a /src/animatedsprite.h
parent0e8c09433f3a193b5a94a1ad572d8237113cdfbf (diff)
downloadmana-client-e8f94fe7ca5e7e7838eaa84f1792b4b42b4bada3.tar.gz
mana-client-e8f94fe7ca5e7e7838eaa84f1792b4b42b4bada3.tar.bz2
mana-client-e8f94fe7ca5e7e7838eaa84f1792b4b42b4bada3.tar.xz
mana-client-e8f94fe7ca5e7e7838eaa84f1792b4b42b4bada3.zip
Merged trunk changes from revision 2618 to 2716 into the 0.1.0 branch.
Diffstat (limited to 'src/animatedsprite.h')
-rw-r--r--src/animatedsprite.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/animatedsprite.h b/src/animatedsprite.h
index b73bdb5c..bda612ab 100644
--- a/src/animatedsprite.h
+++ b/src/animatedsprite.h
@@ -18,7 +18,7 @@
* along with The Mana World; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id: animation.h 2430 2006-07-24 00:13:24Z b_lindeijer $
+ * $Id$
*/
#ifndef _TMW_ANIMATEDSPRITE_H
@@ -50,15 +50,18 @@ enum SpriteAction
ACTION_SIT,
ACTION_SLEEP,
ACTION_HURT,
- ACTION_DEAD
+ ACTION_DEAD,
+ ACTION_INVALID
};
enum SpriteDirection
{
- DIRECTION_DOWN = 0,
+ DIRECTION_DEFAULT = 0,
+ DIRECTION_DOWN,
DIRECTION_UP,
DIRECTION_LEFT,
- DIRECTION_RIGHT
+ DIRECTION_RIGHT,
+ DIRECTION_INVALID
};
/**
@@ -85,11 +88,10 @@ class AnimatedSprite
reset();
/**
- * Plays an action using the current direction that will have a
- * duration of the specified time, 0 means default.
+ * Plays an action using the current direction
*/
void
- play(SpriteAction action, int time = 0);
+ play(SpriteAction action);
/**
* Inform the animation of the passed time so that it can output the