summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-05-25 22:00:39 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-05-25 22:00:39 +0200
commit90483e4f3d0f7b95b3846bf1d0ff410ebd930011 (patch)
treecfc5a2ea5002d981caa51313662bc4b47099a0f7 /include
parente6a53bb57e7c2e5ce17cdc10a51b40cd83ceb85e (diff)
Made output random
Diffstat (limited to 'include')
-rw-r--r--include/move.h14
-rw-r--r--include/spacebot.h3
2 files changed, 17 insertions, 0 deletions
diff --git a/include/move.h b/include/move.h
new file mode 100644
index 0000000..e0e9b6b
--- /dev/null
+++ b/include/move.h
@@ -0,0 +1,14 @@
+#ifndef MOVE_H
+#define MOVE_H
+
+enum class Move: int {
+ NOTHING = 0,
+ MOVE_LEFT = 1,
+ MOVE_RIGHT = 2,
+ SHOOT = 3,
+ BUILD_ALIEN_FACTORY = 4,
+ BUILD_MISSILE_CONTROLLER = 5,
+ BUILD_SHIELD = 6
+};
+
+#endif
diff --git a/include/spacebot.h b/include/spacebot.h
index 920eb73..a5c23c2 100644
--- a/include/spacebot.h
+++ b/include/spacebot.h
@@ -2,6 +2,7 @@
#include <iostream>
#include <fstream>
+#include "move.h"
class Spacebot {
public:
@@ -10,4 +11,6 @@ public:
private:
std::ifstream mapStream;
std::ofstream resultStream;
+ void writeMove(const Move& move);
+ Move chooseMove();
};