00001 #ifndef __PLAYER_H
00002 #define __PLAYER_H
00003
00004 #include "playerbase.h"
00005
00006 class Player : public PlayerBase
00007 {
00008 public:
00009 static const unsigned int INVENTORY_SIZE;
00010 Player(unsigned id, string nm, char race, char color, int x=0, int y=0);
00011 Player();
00012 ~Player();
00013
00014 int getSelectedTool();
00015 int getLastSprite();
00016 ToolType getInventory(unsigned i);
00017
00018 void setSelectedTool(int i);
00019 void setLastSprite(int i);
00020 void setInventory(unsigned i, ToolType t);
00021
00022 private:
00023 int selectedTool;
00024 int lastSprite;
00025 vector<ToolType> inventory;
00026 };
00027
00028 #endif