-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardFour.cpp
More file actions
47 lines (27 loc) · 1.17 KB
/
CardFour.cpp
File metadata and controls
47 lines (27 loc) · 1.17 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "ApplicationManager.h"
#include "CardFour.h"
CardFour::CardFour(const CellPosition& pos) : Card(pos) // set the cell position of the card
{
cardNumber = 4; // set the inherited cardNumber data member with the card number (1 here)
}
CardFour::~CardFour(void)
{
}
void CardFour::ReadCardParameters(Grid* pGrid)
{
///TODO: Implement this function as mentiFourd in the guideline steps (numbered below) below
// == Here are some guideline steps (numbered below) (numbered below) to implement this function ==
// 1- Get a Pointer to the Input / Output Interfaces from the Grid
Output* pOut = pGrid->GetOutput();
Input* pIn = pGrid->GetInput();
// 3- Clear the status bar
pOut->ClearStatusBar();
}
void CardFour::Apply(Grid* pGrid, Player* pPlayer)
{
///TODO: Implement this function as mentiFourd in the guideline steps (numbered below) below
// == Here are some guideline steps (numbered below) (numbered below) to implement this function ==
// 1- Call Apply() of the base class Card to print the message that you reached this card number
Card::Apply(pGrid, pPlayer);
pPlayer->SetTimesToPrevent(1);
}