From 15b511e694f976686fdec1fb9f959f8a92f3b594 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 23 Feb 2019 12:02:00 -0500 Subject: More ranges stuff! Now with custom views --- src/entity.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/entity.h') diff --git a/src/entity.h b/src/entity.h index c47f1e7..3387219 100644 --- a/src/entity.h +++ b/src/entity.h @@ -2,13 +2,24 @@ #define ENTITY_H_0D6CB29A #include +#include #include "vector.h" #include "enums.h" #include "direction.h" +class Entity; + +using id_type = std::vector::size_type; + class Entity { public: + Entity(id_type id) : id(id) + { + } + + id_type id; + // Transform vec2s pos; vec2s size; -- cgit 1.4.1