summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-19 21:24:36 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-19 21:24:36 +0000
commit7ac7d0e030464f744546b4e6183a7242f640d5d3 (patch)
treef19831b29511d46e8aba45ace6017c8e6afe815b /src/localplayer.h
parentb7cfcffd7a156e19dfa9882d67426f4fa6edef57 (diff)
downloadmana-7ac7d0e030464f744546b4e6183a7242f640d5d3.tar.gz
mana-7ac7d0e030464f744546b4e6183a7242f640d5d3.tar.bz2
mana-7ac7d0e030464f744546b4e6183a7242f640d5d3.tar.xz
mana-7ac7d0e030464f744546b4e6183a7242f640d5d3.zip
Separated sprite definition from playback.
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 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;