diff options
author | David Athay <ko2fan@gmail.com> | 2007-03-19 16:52:44 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2007-03-19 16:52:44 +0000 |
commit | 3702c703ff49f7ca21c5fa6c789cab12cab282b9 (patch) | |
tree | 99760cf27b2cffed647d7ee765a7c1855dec7eb0 /src/gui/viewport.h | |
parent | a6f43600f1a9e7b1f39ca0ea9068130b680e5a89 (diff) | |
download | mana-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.h | 7 |
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; |