-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathacademic.h
33 lines (24 loc) · 826 Bytes
/
academic.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
#ifndef _ACADEMICPROPERTY_H_
#define _ACADEMICPROPERTY_H_
#include <iostream>
#include "player.h"
#include "square.h"
class AcademicProperty: public Square {
int improvementCost;
std::vector<int> tuition;
public:
AcademicProperty(Board * board, std::string name, std::string monopolyBlock, int position, int cost, int improvementCost, std::vector<int> tuition);
virtual void action(Player* player);
void buy(Player *, int price);
void auction();
void payTuition(Player* tenant);
virtual void improveBuy(Player* player);
virtual void improveSell(Player* player);
virtual void mortgage(Player* player) override;
virtual void unmortgage(Player* player);
virtual int getValue() override;
int getImprovementCost();
std::vector<int> getTuition();
bool hasMonopoly();
};
#endif