summaryrefslogtreecommitdiff
path: root/2015-spacebot/include/game_entity.h
diff options
context:
space:
mode:
Diffstat (limited to '2015-spacebot/include/game_entity.h')
-rw-r--r--2015-spacebot/include/game_entity.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/2015-spacebot/include/game_entity.h b/2015-spacebot/include/game_entity.h
new file mode 100644
index 0000000..09e0bcc
--- /dev/null
+++ b/2015-spacebot/include/game_entity.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <string>
+
+class GameEntity
+{
+public:
+ GameEntity(int x, int y);
+ int x() const {return _x;}
+ int y() const {return _y;}
+
+ std::string coords() const;
+private:
+ int _x;
+ int _y;
+};
+