diff options
author | David Athay <ko2fan@gmail.com> | 2008-04-11 14:12:30 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-04-11 14:12:30 +0000 |
commit | b50649ee5e28511df72cc3a08023747727c5b6f0 (patch) | |
tree | 1f1408b4550e70388ed1103747f973dbe77670f5 /src/localplayer.h | |
parent | 760967f3c0dae0c352568a2865c57679559806fa (diff) | |
download | mana-b50649ee5e28511df72cc3a08023747727c5b6f0.tar.gz mana-b50649ee5e28511df72cc3a08023747727c5b6f0.tar.bz2 mana-b50649ee5e28511df72cc3a08023747727c5b6f0.tar.xz mana-b50649ee5e28511df72cc3a08023747727c5b6f0.zip |
Players now need to
click on the monster sprites rather than the tile. Players will now
move to the target before attacking it.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index b19a0c3f..bdf43fff 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -160,6 +160,16 @@ class LocalPlayer : public Player */ void setWalkingDir(int dir); + /** + * Sets going to being to attack + */ + void setGotoTarget(Being *target); + + /** + * Returns whether the target is in range to attack + */ + bool withinAttackRange(Being *target); + void raiseAttribute(Attribute attr); void raiseSkill(Uint16 skillId); @@ -215,6 +225,7 @@ class LocalPlayer : public Player FloorItem *mPickUpTarget; bool mTrading; + bool mGoingToTarget; int mLastAction; /**< Time stamp of the last action, -1 if none. */ int mWalkingDir; /**< The direction the player is walking in. */ int mDestX; /**< X coordinate of destination. */ |