-
Notifications
You must be signed in to change notification settings - Fork 1
/
AddCardAction.h
39 lines (30 loc) · 1.04 KB
/
AddCardAction.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
33
34
35
36
37
38
#pragma once
#include "Action.h"
#include "Input.h"
#include "Output.h"
#include "CardOne.h"
#include"CardTwo.h"
#include"CardThree.h"
#include"CardFour.h"
#include "CardFive.h"
#include"CardSix.h"
#include"CardSeven.h"
#include"CardEight.h"
#include"CardNine.h"
#include"CardTen.h"
#include"CardEleven.h"
#include"CardTwelve.h"
class AddCardAction : public Action
{
// [Action Parameters]
int cardNumber; // 1- the card number
CellPosition cardPosition; // 2- cell position of the card
// Note: These parameters should be read in ReadActionParameters()
public:
AddCardAction(ApplicationManager *pApp); // A Constructor
virtual void ReadActionParameters(); // Reads AddCardAction action parameters (cardNumber, cardPosition)
virtual void Execute(); // Creates a new Card Object of the specific Card Number
// and Reads the Parameters of This Card Number (if any)
// then Sets this Card Object to GameObject Pointer of its Cell
virtual ~AddCardAction(); // A Virtual Destructor
};