-
Notifications
You must be signed in to change notification settings - Fork 1
/
AddLadderAction.h
28 lines (16 loc) · 763 Bytes
/
AddLadderAction.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
#pragma once
#include "Action.h"
class AddLadderAction : public Action
{
// Always add action parameters as private data members
// [Action Parameters]
CellPosition startPos; // 1- The start position of the ladder
CellPosition endPos; // 2- The end position of the ladder
// Note: These parameters should be read in ReadActionParameters()
public:
AddLadderAction(ApplicationManager *pApp); // A Constructor
virtual void ReadActionParameters(); // Reads AddLadderAction action parameters (startPos, endPos)
virtual void Execute(); // Creates a new Ladder Object
// then Sets this Ladder object to the GameObject Pointer of its Cell
virtual ~AddLadderAction(); // Virtual Destructor
};