.
This commit is contained in:
parent
c872144327
commit
fb03ddb7ba
9
robot.h
9
robot.h
@ -2,11 +2,10 @@
|
|||||||
#define ROBOT_HEADER
|
#define ROBOT_HEADER
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
using string = std::string;
|
|
||||||
|
|
||||||
class robot {
|
class robot {
|
||||||
private:
|
private:
|
||||||
const string _name;
|
const std::string _name;
|
||||||
int _north;
|
int _north;
|
||||||
int _east;
|
int _east;
|
||||||
int _steps;
|
int _steps;
|
||||||
@ -15,9 +14,9 @@ public:
|
|||||||
void move_east();
|
void move_east();
|
||||||
void move_south();
|
void move_south();
|
||||||
void move_west();
|
void move_west();
|
||||||
int north();
|
int const north();
|
||||||
int east();
|
int const east();
|
||||||
int travelled();
|
int const travelled();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user