From 8ffb27ab09ff567a159e5be5a243fd3967084977 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 3 Feb 2019 16:10:44 -0500 Subject: Very basic ECS --- src/tileset.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/tileset.h (limited to 'src/tileset.h') diff --git a/src/tileset.h b/src/tileset.h new file mode 100644 index 0000000..552b2f8 --- /dev/null +++ b/src/tileset.h @@ -0,0 +1,13 @@ +#ifndef TILESET_H_B89AE7A1 +#define TILESET_H_B89AE7A1 + +class Tileset { +public: + + bool canPlayerMoveTo(size_t tile) const + { + return (tile % 2 == 1); + } +}; + +#endif /* end of include guard: TILESET_H_B89AE7A1 */ -- cgit 1.4.1