From 26fbd8c1edaf94513d9750681edbe449b699efe4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 22 Feb 2019 17:25:59 -0500 Subject: Trains move on tracks to the beat Small implementation changes in various places, biggest thing is now we're using ranges, which is experimental and will be included for real in C++20. --- src/entity.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/entity.h') diff --git a/src/entity.h b/src/entity.h index a69c612..c47f1e7 100644 --- a/src/entity.h +++ b/src/entity.h @@ -4,6 +4,7 @@ #include #include "vector.h" #include "enums.h" +#include "direction.h" class Entity { public: @@ -14,6 +15,7 @@ public: // Grid placement vec2s gridPos; + Layer layer = Layer::object; // Movement Direction shouldMoveTo = Direction::none; @@ -35,6 +37,11 @@ public: bool scheduled = false; + // Track + bool isTrack = false; + Direction trackDir1 = Direction::none; + Direction trackDir2 = Direction::none; + }; #endif /* end of include guard: ENTITY_H_0D6CB29A */ -- cgit 1.4.1