-
Notifications
You must be signed in to change notification settings - Fork 1
/
card8.h
40 lines (32 loc) · 1.01 KB
/
card8.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
#pragma once
#include "Card.h"
class card8 : public Card
{
// card8 Parameters:
int price;
int fees;
int taken;
int mor;
bool offer;
bool made;
public:
card8(const CellPosition & pos); // A Constructor takes card position
virtual void ReadCardParameters(Grid * pGrid); // Reads the parameters of card8 which is: price and fees
virtual void Apply(Grid* pGrid, Player* pPlayer); // Applies the effect of card8 on the passed Player
void settaken(int); // By asking the player whether he wants to buy the city and decrementing his wallet is he wanted to buy the city
int gettaken();
void setmor(int);
int getmor();
int getprice();
int getfee();
void setfees(int);
void setprice(int);
void setoffer(bool);
bool getoffer();
void reset();
void setmade(bool m);
bool getmade();
virtual void Save(ofstream& OutFile, Grid* pGrid, int typ);
virtual void Load(ifstream& InFile, Grid* pGrid, int typ);
virtual ~card8(); // A Virtual Destructor
};