-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaymode.h
More file actions
47 lines (41 loc) · 894 Bytes
/
Copy pathplaymode.h
File metadata and controls
47 lines (41 loc) · 894 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
42
43
44
45
46
47
#pragma once
#include "Action.h"
#include "Cell.h"
#include "Output.h"
#include "Input.h"
#include "Player.h"
#include "excute.h"
#include "Antenna.h"
#include "Grid.h"
#include "CellPosition.h"
#include <cstdlib>
#include <ctime>
#include <cmath>
class playmode : public Action {
private:
Player* ptrp1;
Player* ptrp2;
ApplicationManager* pManager;
Cell* pCell1;
Cell* pCell2;
Output* pOut;
Input* pIn;
Antenna* distance;
Grid* pGrid;
CellPosition test;
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:
playmode(ApplicationManager* pApp, Output* x);
void ReadActionParameters();
void Execute();
};