diff options
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index a3fe91f7..04477af2 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -50,6 +50,11 @@ class LocalPlayer : public Player void setNetwork(Network *network) { mNetwork = network; } 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(); /** @@ -155,7 +160,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 destX; /**< X coordinate of destination. */ + int destY; /**< Y coordinate of destination. */ }; extern LocalPlayer *player_node; |