-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCardEight.h
32 lines (19 loc) · 890 Bytes
/
CardEight.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
#pragma once
#include "Card.h"
// [ CardEight ] Summary:
// This card is a prison.
// When a player stops at a Card8 cell, the player should choose either to pay specific amount of coins to go out of the prison, or stay in prison and not playing for 3 turns.
// Input data in design mode: i.The amount of coins needed to go out of the prison
class CardEight : public Card
{
// CardEight Parameters:
int GoOut; // The amount of coins needed to go out of the prison
public:
CardEight(const CellPosition & pos); // A Constructor takes card position
virtual void ReadCardParameters(Grid * pGrid); // Reads the parameters of CardEight which is: GoOut
Card* CopyCard(CellPosition);
virtual void Apply(Grid* pGrid, Player* pPlayer);
virtual void Save(ofstream& OutFile);
virtual void Load(ifstream& Infile);
virtual ~CardEight(); // A Virtual Destructor
};