From 8af1284654a4a5d454a559eca371bf0ac3c79786 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Tue, 31 Aug 2021 23:53:53 +0200 Subject: tech done, building sprites, upgrade on age up, gui --- game/entity.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'game/entity.h') diff --git a/game/entity.h b/game/entity.h index eeab110..50c7acc 100644 --- a/game/entity.h +++ b/game/entity.h @@ -16,6 +16,7 @@ class EntityInfo { std::string name; int id; + int level; float hp; float attack; @@ -28,11 +29,13 @@ class EntityInfo { std::vector build; std::vector train; - std::vector prod { 0, 0 }; - std::vector cost { 0, 0 }; + std::vector prod { 0, 0 }; + std::vector cost { 0, 0 }; std::vector adjacent; + int upgrade { -1 }; + enum Class { inf, cav, ran, sie, bld }; Class ent_class; -- cgit v1.2.3-54-g00ecf