-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSelectcommand.h
More file actions
41 lines (35 loc) · 829 Bytes
/
Copy pathSelectcommand.h
File metadata and controls
41 lines (35 loc) · 829 Bytes
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
#pragma once
#include "Action.h"
#include "Input.h"
#include "Output.h"
#include "ApplicationManager.h"
#include "Cell.h"
#include "Grid.h"
#include "Player.h"
#include "playmode.h"
#include <cstdlib>
#include <ctime>
#include <cmath>
class selectcommand :public Action {
ApplicationManager* pManager;
Command* savedcommands;
Grid* pGrid;
Output* pOut;
Player* current;
Command* randomcommands;
int size;
Command x[9] = { NO_COMMAND,
MOVE_FORWARD_ONE_STEP,
MOVE_BACKWARD_ONE_STEP,
MOVE_FORWARD_TWO_STEPS,
MOVE_BACKWARD_TWO_STEPS,
MOVE_FORWARD_THREE_STEPS,
MOVE_BACKWARD_THREE_STEPS,
ROTATE_CLOCKWISE,
ROTATE_COUNTERCLOCKWISE, };
public:
selectcommand(ApplicationManager* pApp, Output* x);
void ReadActionParameters();
void Execute();
void randomcommandss();
};