diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-10 12:26:57 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-10 12:26:57 -0700 |
commit | 02e60b55b359002ae1f26f36b40f8fa78ea1a708 (patch) | |
tree | 0264392528cf174e2275bb79a84472b77c5245d2 /src/map.h | |
parent | a8a992ade40c9d68c9faec1cc3a54e7f064fb9d5 (diff) | |
download | mana-02e60b55b359002ae1f26f36b40f8fa78ea1a708.tar.gz mana-02e60b55b359002ae1f26f36b40f8fa78ea1a708.tar.bz2 mana-02e60b55b359002ae1f26f36b40f8fa78ea1a708.tar.xz mana-02e60b55b359002ae1f26f36b40f8fa78ea1a708.zip |
Simplified target drawing so that it actually uses the SimpleAnimation
that it creates when initializing the target cursors in the first place.
This behavior was carried over in the first place from the Viewport
class. Also moved target drawing responsibility from the map to the
being being targeted in the first place. This allows for assuring that
targets are always drawn below the sprite being targeted (which the
previous solution was designed to do, but didn't do correctly).
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,7 +27,6 @@ #include "position.h" #include "properties.h" -#include "simpleanimation.h" class Animation; class AmbientOverlay; @@ -35,6 +34,7 @@ class Graphics; class Image; class MapLayer; class Particle; +class SimpleAnimation; class Sprite; class Tileset; @@ -78,8 +78,8 @@ class TileAnimation { mAffected.push_back(std::make_pair(layer, index)); } private: std::list<std::pair<MapLayer*, int> > mAffected; - SimpleAnimation mAnimation; - Image* mLastImage; + SimpleAnimation *mAnimation; + Image *mLastImage; }; /** |