-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCardTen.h
32 lines (20 loc) · 907 Bytes
/
CardTen.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
#pragma once
#include "Card.h"
class CardTen : public Card
{
//Parameters:
static int CardPrice; //static card 10 price
static int Fees; //static card 10 fees
static Player* card10owner; //static card 10 owner
static bool done; //static bool check if it has owner or not
public:
CardTen(const CellPosition& pos); // A Constructor takes card position
static void setowner(Player* p); //setter to set card 10 owner
static void nullowner(); // removing owner
virtual void ReadCardParameters(Grid* pGrid); // Reads the parameters of Card 10
virtual void Apply(Grid* pGrid, Player* pPlayer); // Applies the effect of Card on the passed Player
virtual void Save(ofstream& outFile, int Type); //save card 10 data using fstream
virtual void Open(ifstream& inFile); //load card 10 data using fstream
Card* getCopy(); //get copy of card 10
virtual ~CardTen(); // A Virtual Destructor
};