-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCardNine.h
33 lines (21 loc) · 1020 Bytes
/
CardNine.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
#pragma once
#include "Cards_9_11.h"
class CardNine : public Cards_9_11
{
static int CardPrice; //the price of the card
static int fees; // the fees that the player pay
static Player* p; //a pointer to the player that will buy the card
static bool IsBought; //indicates whether this station is bought or not
public:
CardNine(const CellPosition& pos); // A Constructor takes card position
void ReadCardParameters(Grid* pGrid); // Reads the parameters of CardTen
void Apply(Grid* pGrid, Player* pPlayer); // Applies the effect of CardTen on the passed Player
bool CheckInputValidity();
virtual Card* GetCopy(const CellPosition&);
void Save(ofstream& outFile, ObjectType ObjType); // Overriding the Card Save member function
void Load(ifstream& InFile); // Overriding the Card Load member function
static Player* GetPlayer();
static int GetCardPrice();
static void SetPlayer(Player* player);
virtual ~CardNine(); // A Virtual Destructor
};