-
Notifications
You must be signed in to change notification settings - Fork 1
/
NonProperty.h
96 lines (81 loc) · 2.15 KB
/
NonProperty.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#ifndef NONPROPERTY_H
#define NONPROPERTY_H
#include "Building.h"
#include "Player.h"
#include "Exception.h"
#include <vector>
#include <memory>
// RimCup class that stores and maintains the number of active cups
class RimCup {
int ActiveCup;
public:
// give a cup to player
void giveCup(Player & p);
// allows player to use a cup
void receiveCup(Player & p);
};
// abstract base class for all Non-Property buildings
class NonProperty : public Building {
public:
NonProperty(std::string name, int position);
virtual ~NonProperty() = 0;
};
// Tuition
class Tuition : public NonProperty {
public:
Tuition(std::string name, int position);
virtual ~Tuition() override;
virtual void accept(Player & p) override;
};
// Tim Hortons
class TimHortons : public NonProperty {
public:
TimHortons(std::string name, int position);
virtual ~TimHortons() override;
virtual void accept(Player & p) override;
};
// GoToTims
class GoToTims : public NonProperty {
public:
GoToTims(std::string name, int position);
virtual ~GoToTims() override;
virtual void accept(Player & p) override;
};
// SLC
class SLC : public NonProperty {
std::shared_ptr<RimCup> rimCup;
public:
SLC(std::string name, int position, std::shared_ptr<RimCup> r);
virtual ~SLC() override;
virtual void accept(Player & p) override;
};
// OSAP
class OSAP : public NonProperty {
public:
OSAP(std::string name, int position);
virtual ~OSAP() override;
virtual void accept(Player & p) override;
};
// Coop Fee
class CoopFee : public NonProperty {
public:
CoopFee(std::string name, int position);
virtual ~CoopFee() override;
virtual void accept(Player & p) override;
};
// Goose nesting
class Goose : public NonProperty {
public:
Goose(std::string name, int position);
virtual ~Goose() override;
virtual void accept(Player & p) override;
};
// Needles Hall
class NeedlesHall : public NonProperty {
std::shared_ptr<RimCup> rimCup;
public:
NeedlesHall(std::string name, int position, std::shared_ptr<RimCup> r);
virtual ~NeedlesHall() override;
virtual void accept(Player & p) override;
};
#endif