-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.h
45 lines (43 loc) · 981 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
38
39
40
41
42
43
44
45
#ifndef __a5__player__
#define __a5__player__
#include <string>
// class forward declarations
class Building;
class AcademicBuilding;
class Board;
class Player {
public:
std::string name;
char piece;
int pos;
double money;
double netWorth;
int numResidences;
int numGyms;
int turnsInTims;
bool hasRollupCup;
Player(std::string name, char piece);
std::string getName();
int getPos();
int move(int x);
bool pay(double amount);
void collect(double amount);
void purchase(Building *b);
void addResidence();
void addGym();
void improve(AcademicBuilding *ab, bool buy);
int getNumResidences();
int getNumGyms();
void mortgage(Building *b);
void unmortgage(Building *b);
double getBalance();
char getPiece();
void roll();
void giveRollupCup();
void goToTims();
bool tryToLeaveTims(Board *b);
bool payTution(int option);
void SLC(Board *board);
void NeedlesHall(Board *board);
};
#endif