-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathownable.h
33 lines (28 loc) · 879 Bytes
/
ownable.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
#ifndef OWNABLE_H
#define OWNABLE_H
#include <string>
#include "seeds.h"
#include "square.h"
class Square;
class Ownable : public Square {
char owner;
int costToBuy;
int imprLevel = 0;
int payLevel = 0; //almost the same with imprLevel except for gym and resident, this one show how many gym (or res) all own together
bool mortgageStatus = false;
std::string monopolyBlock;
public:
Ownable(int ID, std::string name, int costToBuy, char owner);
virtual int amountToPay() = 0;
void setOwner(char owner);
void setMortStatus(bool status);
void setImprLevel(int level);
void setPayLevel(int level);
char getOwner() const;
bool getMortStatus() const;
int getImprLevel() const;
int getPayLevel() const;
int getCostToBuy() const;
std::string getMonoBlock() const;
};
#endif