-
Notifications
You must be signed in to change notification settings - Fork 1
/
card11.h
39 lines (32 loc) · 1.02 KB
/
card11.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
#pragma once
#include "Card.h"
class card11 : public Card
{
// card11 Parameters:
int price;
int fees;
int taken;
int mor;
bool offer;
bool made;
public:
card11(const CellPosition & pos); // A Constructor takes card position
virtual void ReadCardParameters(Grid * pGrid); // Reads the parameters of card11 which is: price and fees
virtual void Apply(Grid* pGrid, Player* pPlayer); // Applies the effect of card11 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 reset();
void setmor(int x);
int getmor();
int getprice();
int getfee();
void setfees(int);
void setprice(int);
void setoffer(bool);
bool getoffer();
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 ~card11(); // A Virtual Destructor
};