summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index dbf2a147..f632b1b9 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -47,6 +47,11 @@ class LocalPlayer : public Player
virtual ~LocalPlayer();
virtual void logic();
+
+ /**
+ * Adds a new step when walking before calling super. Also, when
+ * specified it picks up an item at the end of a path.
+ */
virtual void nextStep();
/**
@@ -151,7 +156,10 @@ class LocalPlayer : public Player
FloorItem *mPickUpTarget;
bool mTrading;
- int mLastAction; /**< Time stamp of the last action, -1 if none */
+ 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. */
+ int mDestY; /**< Y coordinate of destination. */
};
extern LocalPlayer *player_node;