-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAPI.h
34 lines (23 loc) · 744 Bytes
/
API.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
#pragma once
#include <string>
class API {
public:
static int mazeWidth();
static int mazeHeight();
static bool wallFront();
static bool wallRight();
static bool wallLeft();
static void moveForward(int distance = 1);
static void turnRight();
static void turnLeft();
static void setWall(int x, int y, char direction);
static void clearWall(int x, int y, char direction);
static void setColor(int x, int y, char color);
static void clearColor(int x, int y);
static void clearAllColor();
static void setText(int x, int y, const std::string& text);
static void clearText(int x, int y);
static void clearAllText();
static bool wasReset();
static void ackReset();
};