summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-27 01:32:22 +0000
committerIra Rice <irarice@gmail.com>2008-10-27 01:32:22 +0000
commit8119f4ec53b64adc427f683077f65ce8aec85582 (patch)
treeed95e9a85c4cfe412e391f95860866253d25b0a4 /src/being.h
parentfe76762f26180fdbbbac6e16bfa02c8bde3be78b (diff)
downloadmana-8119f4ec53b64adc427f683077f65ce8aec85582.tar.gz
mana-8119f4ec53b64adc427f683077f65ce8aec85582.tar.bz2
mana-8119f4ec53b64adc427f683077f65ce8aec85582.tar.xz
mana-8119f4ec53b64adc427f683077f65ce8aec85582.zip
Merged the Tametomo branch back into trunk. Targeting has been removed
from the viewport, and is now located on the beings themselves. Eventually, this will be changed further so that the targets draw below the being, instead of maintaining the same logic, but baby steps first.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/being.h b/src/being.h
index cceebc3c..1eeeb9db 100644
--- a/src/being.h
+++ b/src/being.h
@@ -30,9 +30,9 @@
#include <SDL_types.h>
#include <vector>
-#include "sprite.h"
-#include "map.h"
#include "animatedsprite.h"
+#include "map.h"
+#include "sprite.h"
#include "gui/speechbubble.h"
@@ -48,7 +48,6 @@ class ItemInfo;
class Item;
class Map;
class Graphics;
-class ImageSet;
class Particle;
class SpeechBubble;
class Text;
@@ -362,8 +361,10 @@ class Being : public Sprite
*/
virtual void triggerEffect(int effectId) { internalTriggerEffect(effectId, false, true); }
- const std::auto_ptr<Equipment> mEquipment;
+ // Target cursor being used by the being
+ Image *mTargetCursor;
+ const std::auto_ptr<Equipment> mEquipment;
protected:
/**
@@ -392,6 +393,7 @@ class Being : public Sprite
std::string mName; /**< Name of character */
SpriteIterator mSpriteIterator;
bool mIsGM;
+ bool mTargeted;
bool mParticleEffects; /**< Whether to display particles or not */
/** Engine-related infos about weapon. */