aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/headers/Tile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/headers/Tile.hpp')
-rw-r--r--src/main/headers/Tile.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/headers/Tile.hpp b/src/main/headers/Tile.hpp
new file mode 100644
index 0000000..7292fde
--- /dev/null
+++ b/src/main/headers/Tile.hpp
@@ -0,0 +1,17 @@
+#ifndef TILE_HPP
+#define TILE_HPP
+
+struct Tile
+{
+ enum Type
+ {
+ GRASS, WATER
+ };
+
+ const Type type;
+ const int x, y;
+
+ Tile(Type _type, int _x, int _y) : type(_type), x(_x), y(_y) {}
+};
+
+#endif