-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpaceStation.h
46 lines (36 loc) · 960 Bytes
/
SpaceStation.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
39
40
41
42
43
44
45
46
//
// SpaceStation.h
// Space Station Simulator
// Bader AlAttar
#ifndef SpaceStation_h
#define SpaceStation_h
#include <vector>
#include <string>
#include "Astrobee.h"
using namespace std;
class SpaceStation {
public:
// Call constructor to run program
SpaceStation();
~SpaceStation();
void GenerateMap();
void DisplayMap() const;
void DisplayHelp() const;
void StartBot();
void Step(string);
bool PlaceHazard(int,int);
bool InValidPosition(int,int);
void PrintHazard() const;
void UpdateBotLoc(string, int, int);
void Sense();
void Automatic(int,int);
private:
Astrobee* Bot; // Pointer to Astrobee Bot
vector<vector<string>> map; // 2d Vector of strings for map
int x0,y0; // starting position
string command; // current command
const int w; // ss width
const int l; // ss length
static int stepnumber;
};
#endif /* SpaceStation_h */