summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-11 15:47:35 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-11 15:47:35 +0000
commit8da32105732949b4b0273c718d118bcfae70a1c9 (patch)
tree0a354974d48268cfaafcdb1e06b498fa26a59c1e /src/player.h
parentf9ce4e302cb3ed203d89a7a18e10b7ad4f11519c (diff)
downloadmana-8da32105732949b4b0273c718d118bcfae70a1c9.tar.gz
mana-8da32105732949b4b0273c718d118bcfae70a1c9.tar.bz2
mana-8da32105732949b4b0273c718d118bcfae70a1c9.tar.xz
mana-8da32105732949b4b0273c718d118bcfae70a1c9.zip
Merged 0.0 changes from revision 2825 to 2898 to trunk.
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/player.h b/src/player.h
index 3c061be6..b062a55f 100644
--- a/src/player.h
+++ b/src/player.h
@@ -26,12 +26,14 @@
#include "being.h"
-#include <string>
-
class Graphics;
class Map;
-class AnimatedSprite;
+/**
+ * A player being. Players have their name drawn beneath them. This class also
+ * implements player-specific loading of base sprite, hair sprite and equipment
+ * sprites.
+ */
class Player : public Being
{
public:
@@ -56,18 +58,10 @@ class Player : public Being
setHairStyle(Uint16 style);
virtual void
- setVisibleEquipment(Uint8 slot, Uint8 id);
+ setVisibleEquipment(Uint8 slot, int id);
virtual void
setWeapon(Uint16 weapon);
-
- private:
- /**
- * Resets all animations associated with this player. This is used to
- * synchronize the animations after a new one has been added.
- */
- void
- resetAnimations();
};
#endif