-
Notifications
You must be signed in to change notification settings - Fork 7
/
space.h
51 lines (43 loc) · 1.18 KB
/
space.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
49
50
#ifndef SPACE_H
#define SPACE_H
#include "action.h"
class Space {
private:
string name[2];
string actionText[2];
string spaceType; //property, card, tax, railroads, jail, etc
int propertyCost;
int freeParking;
bool occupied;
int owned;
bool mortgaged;
int houses;
int rent;
int tax;
public:
//functions to set values
void setName(string inputName, string inputName2);
void setType(string inputType);
void setPropertyCost(int inputCost);
void setFreeParking(int inputMoney);
void setOccupied(int inputOccupied);
void setOwnership(int inputOwnership);
void setMortgaged(bool inputMortgage);
void setRent(int inputRent);
void setTax(int inputTax);
void setActionText(string textInput, string textInput2);
void setHouses(int inputHouses);
bool upgrade();
//functions to get values
string getName(int nameIndex);
int getPropertyCost();
int getFreeParking();
bool getMortgaged();
int getRent();
int getTax();
int getOwnership();
string getActionText(int textIndex);
string getType();
int getHouses();
};
#endif