From 3702c703ff49f7ca21c5fa6c789cab12cab282b9 Mon Sep 17 00:00:00 2001 From: David Athay Date: Mon, 19 Mar 2007 16:52:44 +0000 Subject: Added target cursor. Shows blue when target in range, and red when out of range. --- src/gui/viewport.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/viewport.h') 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; -- cgit v1.2.3-70-g09d2