-
Notifications
You must be signed in to change notification settings - Fork 1
/
card3.h
18 lines (13 loc) · 813 Bytes
/
card3.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 card3 : public Card
{
public:
card3(const CellPosition & pos); // A Constructor takes card position
virtual void ReadCardParameters(Grid * pGrid);
virtual void Apply(Grid* pGrid, Player* pPlayer); // Applies the effect of BackwardCard_3 on the passed Player
// by moving the player backwards the same number the steps he rolled
virtual void Save(ofstream& OutFile, Grid* pGrid, int typ); // Saves the GameObject parameters to the file --> feel free to change this prototype as needed
virtual void Load(ifstream& Infile, Grid* pGrid, int typ); // Loads and Reads the GameObject parameters from the file --> feel free to change this prototype as needed
virtual ~card3(); // A Virtual Destructor
};