aboutsummaryrefslogtreecommitdiff
path: root/game/entity.h
diff options
context:
space:
mode:
authorjacopograndi <jak.sk8@hotmail.it>2021-08-31 23:53:53 +0200
committerjacopograndi <jak.sk8@hotmail.it>2021-08-31 23:53:53 +0200
commit8af1284654a4a5d454a559eca371bf0ac3c79786 (patch)
tree70e9cf9d3d11a205175bdad394b6201870cf7f07 /game/entity.h
parentfb5a98b72ab79949d1da7f75a3d6150c2906ef40 (diff)
tech done, building sprites, upgrade on age up, gui
Diffstat (limited to 'game/entity.h')
-rw-r--r--game/entity.h7
1 files changed, 5 insertions, 2 deletions
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<int> build;
std::vector<int> train;
- std::vector<int> prod { 0, 0 };
- std::vector<int> cost { 0, 0 };
+ std::vector<float> prod { 0, 0 };
+ std::vector<float> cost { 0, 0 };
std::vector<int> adjacent;
+ int upgrade { -1 };
+
enum Class { inf, cav, ran, sie, bld };
Class ent_class;