From e3fd07e606098dd9cdf0b7ed806340d8466b5572 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 11 Feb 2018 22:55:22 +0100 Subject: Reimplement in C++ with SFML (mostly) --- src/main/headers/Tile.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/main/headers/Tile.hpp (limited to 'src/main/headers/Tile.hpp') 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 -- cgit v1.2.1