summaryrefslogtreecommitdiff
path: root/src/animation.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-14 21:40:40 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-14 21:40:40 +0000
commit82f587f2f3795898ed4fb7b125bf34b7e13de7cd (patch)
tree493f9591dac9f7e763a026b98b9860cab498eb13 /src/animation.h
parent81567749246fd4f3fb3a9c1fdbaae41327459612 (diff)
downloadmana-client-82f587f2f3795898ed4fb7b125bf34b7e13de7cd.tar.gz
mana-client-82f587f2f3795898ed4fb7b125bf34b7e13de7cd.tar.bz2
mana-client-82f587f2f3795898ed4fb7b125bf34b7e13de7cd.tar.xz
mana-client-82f587f2f3795898ed4fb7b125bf34b7e13de7cd.zip
Separated Action class to its own module.
Diffstat (limited to 'src/animation.h')
-rw-r--r--src/animation.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/animation.h b/src/animation.h
index 605d8cb1..8f62b9c4 100644
--- a/src/animation.h
+++ b/src/animation.h
@@ -110,51 +110,4 @@ class Animation
unsigned int mTime;
};
-/**
- * An action consists of several animations, one for each direction.
- */
-class Action
-{
- public:
- /**
- * Constructor.
- */
- Action();
-
- /**
- * Destructor.
- */
- ~Action();
-
- /**
- * Sets the spriteset used by this action.
- */
- void
- setSpriteset(Spriteset *spriteset) { mSpriteset = spriteset; }
-
- /**
- * Returns the spriteset used by this action.
- */
- Spriteset*
- getSpriteset() const { return mSpriteset; }
-
- void
- setAnimation(int direction, Animation *animation);
-
- /**
- * Resets all animations associated with this action.
- */
- void
- reset();
-
- Animation*
- getAnimation(int direction) const;
-
- protected:
- Spriteset *mSpriteset;
- typedef std::map<int, Animation*> Animations;
- typedef Animations::iterator AnimationIterator;
- Animations mAnimations;
-};
-
#endif