diff options
author | jacopograndi <jak.sk8@hotmail.it> | 2021-08-31 23:53:53 +0200 |
---|---|---|
committer | jacopograndi <jak.sk8@hotmail.it> | 2021-08-31 23:53:53 +0200 |
commit | 8af1284654a4a5d454a559eca371bf0ac3c79786 (patch) | |
tree | 70e9cf9d3d11a205175bdad394b6201870cf7f07 /game/gst.h | |
parent | fb5a98b72ab79949d1da7f75a3d6150c2906ef40 (diff) |
tech done, building sprites, upgrade on age up, gui
Diffstat (limited to 'game/gst.h')
-rw-r--r-- | game/gst.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |