summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index b5e7c3eb..2813ca77 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -28,9 +28,6 @@
#include <memory>
-// TODO move into some sane place...
-#define MAX_SLOT 2
-
class FloorItem;
class Inventory;
class Item;
@@ -118,6 +115,10 @@ enum
NB_CHARACTER_ATTRIBUTES = CHAR_SKILL_END
};
+enum InputType {
+ BY_MOUSE = 0, BY_KEYBOARD, BY_SYSTEM
+};
+
/**
* The local player character.
@@ -248,7 +249,7 @@ class LocalPlayer : public Player
/**
* Sets a new destination for this being to walk to.
*/
- void setDestination(Uint16 x, Uint16 y);
+ void setDestination(Uint16 x, Uint16 y, InputType inputType);
/**
* Sets a new direction to keep walking in.
@@ -371,6 +372,8 @@ class LocalPlayer : public Player
int mWalkingDir; /**< The direction the player is walking in. */
int mDestX; /**< X coordinate of destination. */
int mDestY; /**< Y coordinate of destination. */
+ int mLocalWalkTime; /**< Time in millisecs before the next walk
+ can be sent when using mouse. */
std::list<std::string> mExpMessages; /**< Queued exp messages*/
int mExpMessageTime;