summaryrefslogtreecommitdiff
path: root/src/action.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-14 22:51:09 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-14 22:51:09 +0000
commit29bedd4da7e21b6dc644c8aa69d096db1516ea7b (patch)
treec33d35513bbf069e4e39c604bc2200ce100856e1 /src/action.h
parent82f587f2f3795898ed4fb7b125bf34b7e13de7cd (diff)
downloadmana-29bedd4da7e21b6dc644c8aa69d096db1516ea7b.tar.gz
mana-29bedd4da7e21b6dc644c8aa69d096db1516ea7b.tar.bz2
mana-29bedd4da7e21b6dc644c8aa69d096db1516ea7b.tar.xz
mana-29bedd4da7e21b6dc644c8aa69d096db1516ea7b.zip
Resolve Image* of animation phase at load time instead of storing just the
spriteset index and looking it up later (checking validity should still be added). Also calculate animation length during loading instead of summing it up each time it is requested.
Diffstat (limited to 'src/action.h')
-rw-r--r--src/action.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/action.h b/src/action.h
index a686e722..6872ea5c 100644
--- a/src/action.h
+++ b/src/action.h
@@ -29,7 +29,6 @@
#include <libxml/tree.h>
class Image;
-class Spriteset;
struct AnimationPhase;
class Animation;
@@ -50,18 +49,6 @@ class Action
*/
~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);
@@ -75,7 +62,6 @@ class Action
getAnimation(int direction) const;
protected:
- Spriteset *mSpriteset;
typedef std::map<int, Animation*> Animations;
typedef Animations::iterator AnimationIterator;
Animations mAnimations;