diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-07-30 15:19:45 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-07-30 15:19:45 +0000 |
commit | 7b599fad6cdbaa40f1cb496218dcd5546de7f520 (patch) | |
tree | 36222d32c9b56701be663dad80e06af47acd78d2 /src/animatedsprite.h | |
parent | b280c89bbc8a3c12e45c3907166cc79e45fcf66d (diff) | |
download | mana-client-7b599fad6cdbaa40f1cb496218dcd5546de7f520.tar.gz mana-client-7b599fad6cdbaa40f1cb496218dcd5546de7f520.tar.bz2 mana-client-7b599fad6cdbaa40f1cb496218dcd5546de7f520.tar.xz mana-client-7b599fad6cdbaa40f1cb496218dcd5546de7f520.zip |
Unified the play methods.
Diffstat (limited to 'src/animatedsprite.h')
-rw-r--r-- | src/animatedsprite.h | 11 |
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 |