13 #include "../lib/toolkit.h" 25 std::vector<std::string> inventory;
26 std::vector<int> numberItems;
27 std::string classType;
28 std::string firstName;
30 std::vector<std::string> buffs;
140 std::vector<std::string>
getBuffs();
144 std::vector<int>
getNum();
void removeFromInventory(std::string item)
Remove an item from the player's inventory.
Definition: player.cpp:107
bool displayStats()
Definition: player.cpp:282
void setCurrHealth(int health)
Set the player's current health.
Definition: player.cpp:145
bool printInventory()
Definition: player.cpp:265
bool addToInventory(std::string item)
Add an item to the player's inventory.
Definition: player.cpp:58
void getClassFromUser()
Get the player's class type from user input.
Definition: player.cpp:48
void getNameFromUser()
Get the player's name from user input.
Definition: player.cpp:38
std::vector< std::string > getInventory()
Get the player's inventory.
Definition: player.cpp:224
bool setCoinsMinus(int c)
Definition: player.cpp:299
void setDamage(int d)
Definition: player.cpp:92
int getDamage()
Definition: player.cpp:97
void setResistance(int resistance)
Set the player's resistance value.
Definition: player.cpp:197
int * getCurrHealth()
Get the player's current health.
Definition: player.cpp:242
int getResistance()
Get the player's resistance value.
Definition: player.cpp:251
void setMaxHelth(int maxHealth)
Set the player's maximum health.
Definition: player.cpp:131
std::string getClassType()
Get the player's class type.
Definition: player.cpp:215
bool setCoinsPlus(int c)
Definition: player.cpp:293
std::string getName()
Get the player's name.
Definition: player.cpp:206
int getMaxHealth()
Get the player's maximum health.
Definition: player.cpp:233
void addBuff(std::string buff)
Add a buff to the player.
Definition: player.cpp:165
~Player()
Destructor for the Player class.
Definition: player.cpp:29
void heal()
Definition: player.cpp:305
std::vector< int > getNum()
Definition: player.cpp:188
void removeBuff(std::string buff)
Remove a buff from the player.
Definition: player.cpp:175
Manages player attributes and actions.
Definition: player.h:20
std::vector< std::string > getBuffs()
Get the player's active buffs.
Definition: player.cpp:260
Player()
Constructor for the Player class.
Definition: player.cpp:15
int getCoins()
Definition: player.cpp:357