summaryrefslogtreecommitdiff
path: root/src/animatedsprite.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-07-30 15:19:45 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-07-30 15:19:45 +0000
commit7b599fad6cdbaa40f1cb496218dcd5546de7f520 (patch)
tree36222d32c9b56701be663dad80e06af47acd78d2 /src/animatedsprite.h
parentb280c89bbc8a3c12e45c3907166cc79e45fcf66d (diff)
downloadmana-7b599fad6cdbaa40f1cb496218dcd5546de7f520.tar.gz
mana-7b599fad6cdbaa40f1cb496218dcd5546de7f520.tar.bz2
mana-7b599fad6cdbaa40f1cb496218dcd5546de7f520.tar.xz
mana-7b599fad6cdbaa40f1cb496218dcd5546de7f520.zip
Unified the play methods.
Diffstat (limited to 'src/animatedsprite.h')
-rw-r--r--src/animatedsprite.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/animatedsprite.h b/src/animatedsprite.h
index 32466de8..4ef1d9f7 100644
--- a/src/animatedsprite.h
+++ b/src/animatedsprite.h
@@ -51,16 +51,11 @@ class AnimatedSprite
~AnimatedSprite();
/**
- * Sets a new action using the current direction.
+ * Plays an action using the current direction that will have a
+ * duration of the specified time, 0 means default.
*/
void
- play(const std::string& action);
-
- /**
- * Plays an action in a specified time.
- */
- void
- play(const std::string& action, int time);
+ play(const std::string& action, int time = 0);
/**
* Inform the animation of the passed time so that it can output the