-
Notifications
You must be signed in to change notification settings - Fork 1
/
card6.h
18 lines (15 loc) · 731 Bytes
/
card6.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include"Card.h"
class card6 : public Card
{
int eo;// represents odd or even
int turns;// number of turns to freeze
public:
card6(const CellPosition & pos); // A Constructor takes card position
virtual void ReadCardParameters(Grid * pGrid); // Reads the parameters of FreezeCard_6 which is: eo and turns
virtual void Apply(Grid* pGrid, Player* pPlayer); // Applies the effect of FreezeCard_6 on the passed Player
// Freezes the other players that are currently in odd/even cells for specific number of turns
virtual void Save(ofstream& OutFile, Grid* pGrid, int typ);
virtual void Load(ifstream& InFile, Grid* pGrid, int typ);
virtual ~card6(); // A Virtual Destructor
};