From 3fcd6a549fc825f4185a6dc248922e02988caed5 Mon Sep 17 00:00:00 2001 From: Fate Date: Sun, 7 Dec 2008 04:00:55 -0700 Subject: Added client-side status change handlers (text, icon, particle effect, audio). --- src/resources/spritedef.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/resources/spritedef.h') diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h index c7b94d9a..88f9b7b7 100644 --- a/src/resources/spritedef.h +++ b/src/resources/spritedef.h @@ -78,6 +78,19 @@ class SpriteDef : public Resource */ Action *getAction(SpriteAction action) const; + /** + * Converts a string into a SpriteAction enum. + */ + static SpriteAction + makeSpriteAction(const std::string &action); + + /** + * Converts a string into a SpriteDirection enum. + */ + static SpriteDirection + makeSpriteDirection(const std::string &direction); + + private: /** * Constructor. @@ -132,18 +145,6 @@ class SpriteDef : public Resource void substituteAction(SpriteAction complete, SpriteAction with); - /** - * Converts a string into a SpriteAction enum. - */ - static SpriteAction - makeSpriteAction(const std::string &action); - - /** - * Converts a string into a SpriteDirection enum. - */ - static SpriteDirection - makeSpriteDirection(const std::string &direction); - typedef std::map ImageSets; typedef ImageSets::iterator ImageSetIterator; -- cgit v1.2.3-70-g09d2