-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.h
37 lines (30 loc) · 791 Bytes
/
Player.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef PLAYER_HPP
#define PLAYER_HPP
#include <string>
using namespace std;
class Player
{
private:
string _name;
int _strength, _stamina, _wisdom, _pride_points, _age;
int constrainIntToRange(int, int, int);
public:
Player();
Player(string name, int age, int strength, int stamina, int wisdom, int pride_points);
string getName();
int getStrength();
int getStamina();
int getWisdom();
int getPridePoints();
int getAge();
void setName(string name);
void addStrength(int strength);
void addStamina(int stamina);
void addWisdom(int wisdom);
void addPridePoints(int pride_points);
void addAge(int age);
void trainCub(int strength, int stamina, int wisdom);
void toPrideLands();
void printStats();
};
#endif