-
Notifications
You must be signed in to change notification settings - Fork 1
/
card9.h
40 lines (32 loc) · 1.01 KB
/
card9.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 card9: public Card
{
// card9 Parameters:
int price;
int fees;
int taken;
int mor;
bool offer;
bool made;
public:
card9(const CellPosition & pos); // A Constructor takes card position
virtual void ReadCardParameters(Grid * pGrid); // Reads the parameters of card9 which is: price and fees
virtual void Apply(Grid* pGrid, Player* pPlayer); // Applies the effect of card9 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 ~card9(); // A Virtual Destructor
};