summaryrefslogtreecommitdiff
path: root/src/gui/viewport.h
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2007-03-19 16:52:44 +0000
committerDavid Athay <ko2fan@gmail.com>2007-03-19 16:52:44 +0000
commit3702c703ff49f7ca21c5fa6c789cab12cab282b9 (patch)
tree99760cf27b2cffed647d7ee765a7c1855dec7eb0 /src/gui/viewport.h
parenta6f43600f1a9e7b1f39ca0ea9068130b680e5a89 (diff)
downloadmana-client-3702c703ff49f7ca21c5fa6c789cab12cab282b9.tar.gz
mana-client-3702c703ff49f7ca21c5fa6c789cab12cab282b9.tar.bz2
mana-client-3702c703ff49f7ca21c5fa6c789cab12cab282b9.tar.xz
mana-client-3702c703ff49f7ca21c5fa6c789cab12cab282b9.zip
Added target cursor. Shows blue when target in range, and red when out of range.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r--src/gui/viewport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h
index f1cadd98..45863228 100644
--- a/src/gui/viewport.h
+++ b/src/gui/viewport.h
@@ -35,6 +35,7 @@ class Being;
class FloorItem;
class Item;
class PopupMenu;
+class SimpleAnimation;
/**
* The viewport on the map. Displays the current map and handles mouse input
@@ -148,6 +149,12 @@ class Viewport : public WindowContainer, public gcn::MouseListener,
int mCameraX; /**< Current viewpoint in tiles. */
int mCameraY; /**< Current viewpoint in tiles. */
bool mShowDebugPath; /**< Show a path from player to pointer. */
+
+ /**
+ * Target animated cursor.
+ */
+ SimpleAnimation *mTargetCursorInRange;
+ SimpleAnimation *mTargetCursorOutRange;
bool mPlayerFollowMouse;
int mWalkTime;