aboutsummaryrefslogtreecommitdiff
path: root/game/gst.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/gst.h
parentfb5a98b72ab79949d1da7f75a3d6150c2906ef40 (diff)
tech done, building sprites, upgrade on age up, gui
Diffstat (limited to 'game/gst.h')
-rw-r--r--game/gst.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/game/gst.h b/game/gst.h
index 906b372..c9c5d3c 100644
--- a/game/gst.h
+++ b/game/gst.h
@@ -54,10 +54,14 @@ class Gst {
std::vector<Player> players;
+ Player& get_player (int id);
+ Tech* get_tech (int id);
EntityInfo* get_info (std::string name);
EntityInfo* get_info (int id);
bool info_has_ability (EntityInfo* info, std::string name);
Entity& get_at (int x, int y);
+ std::vector<float> get_cost (EntityInfo *info, Player &player);
+ float get_trade_rate (Player &player);
float get_type_bonus (Entity &atk, Entity &def);
std::vector<Bonus> get_bonuses (Entity &atk, Entity &def);
@@ -71,14 +75,19 @@ class Gst {
std::vector<int> get_possible_builds (Entity &ent);
- bool check_req_build(Entity &ent, EntityInfo *info);
-
+ bool check_req_build (Entity &ent, EntityInfo *info);
+ bool check_req_train (Entity &ent, EntityInfo *info);
+ bool check_req_tech (Tech *tech, Player &player);
+ bool check_req_level (Player &player);
bool check_obstructed (Entity &ent);
int turn { 0 };
int day { 0 };
void end_day ();
+ void level_upgrade (Player &player);
+
+ void update_tech_lookup (Player &player);
};
#endif \ No newline at end of file