-
Notifications
You must be signed in to change notification settings - Fork 1
/
NewGame.cpp
31 lines (24 loc) · 716 Bytes
/
NewGame.cpp
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
#include "NewGame.h"
#include "Input.h"
#include "Output.h"
#include"Player.h"
#include"Card.h"
NewGame::NewGame(ApplicationManager *pApp) : Action(pApp)
{
// Initializes the pManager pointer of Action with the passed pointer
}
NewGame::~NewGame()
{
}
void NewGame::ReadActionParameters()
{
}
// Execute the action
void NewGame::Execute()
{
// The first line of any Action Execution is to read its parameter first
// and hence initializes its data members
Grid* pgrid = pManager->GetGrid();
pgrid->New(); // this functions calls the reset of all the gameobjects (including cards )and the reset of players (check player.cpp reset func.)
pgrid->UpdateInterface();
}