summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-09-02 12:50:40 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-09-02 12:50:40 +0000
commit3213f41daeed034c8aa9b8be9e86796737a38a78 (patch)
tree5441dd101209774d6e7c6612281b3ef12bd941a5 /src/localplayer.h
parentf5fc009543a0a189bcde5acf91ff315dd9cd05e9 (diff)
downloadmana-3213f41daeed034c8aa9b8be9e86796737a38a78.tar.gz
mana-3213f41daeed034c8aa9b8be9e86796737a38a78.tar.bz2
mana-3213f41daeed034c8aa9b8be9e86796737a38a78.tar.xz
mana-3213f41daeed034c8aa9b8be9e86796737a38a78.zip
Applied patch by Bernard Lidicky, adding targetting nearest monster with either
keyboard or mouse. Also made clicking beings in general a bit easier (patch applied by Bjørn Lindeijer).
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 1f8c836f..a3fe91f7 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -99,12 +99,17 @@ class LocalPlayer : public Player
* Sets the trading state of the player, i.e. whether or not he is
* currently involved into some trade.
*/
- void setTrading(bool trading) { mTrading = trading; };
+ void setTrading(bool trading) { mTrading = trading; }
void attack(Being *target=NULL, bool keep=false);
void stopAttack();
Being* getTarget() const;
+ /**
+ * Sets the target being of the player.
+ */
+ void setTarget(Being* target) { mTarget = target; }
+
void walk(unsigned char dir);
/**