forked from anthonyjuan-wang/Watopoly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.h
executable file
·48 lines (43 loc) · 1.19 KB
/
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
46
47
48
#ifndef __PLAYER_H__
#define __PLAYER_H__
#include <string>
#include <iostream>
#include <memory>
#include <vector>
class Tile;
class PlayerImpl;
class Player
{
// Prob will need a private class for money, roll, etc
std::shared_ptr<PlayerImpl> impl;
public:
Player(std::string name, char piece, int money = 1500, int pos = 0, int rollup = 0);
~Player();
void move(int n);
int getMoney();
void addMoney(int n);
void subtractMoney(int n);
void declareBankruptcy();
int getRollUpCount();
void addRollUpCount();
void useRollUpCount();
void displayAssets();
std::string getName();
int getPos();
char getPiece();
void setPos(int n);
bool getJailStatus();
void setJailStatus(bool status);
int getJailCount();
void setJailCount(int n);
bool getAlmostBankruptStatus();
void setAlmostBankruptStatus(bool status);
bool getBankruptStatus();
void setBankruptStatus(bool status);
int getMoneyOwed();
void setMoneyOwed(int n);
void addTile(std::shared_ptr<Tile> t);
std::vector<std::shared_ptr<Tile>> getTiles();
void transferProp(std::shared_ptr<Player> otherPlayer, std::shared_ptr<Tile> tile);
};
#endif