-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.hpp
40 lines (34 loc) · 837 Bytes
/
Player.hpp
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
38
39
40
/*********************************************************************
** Author: Melody Reebs
** Date: 06/08/2018
** Title: Yahtzee
** Description: Player class specification file
*********************************************************************/
#ifndef PLAYER_HPP
#define PLAYER_HPP
#include <string>
using std::string;
class Player {
private:
string name;
int upperScores[6];
int lowerScores[7];
int yahtzeeBonus;
public:
// Constructors
Player(string);
// Methods
void setName(string);
bool setScore(int, int);
string getName();
string getInitials();
int getScore(int);
int getUpperScore(int);
int getLowerScore(int);
int getUpperSubTotal();
int getUpperTotal();
int getLowerSubTotal();
int getLowerTotal();
int getTotalScore();
};
#endif