aboutsummaryrefslogtreecommitdiff
path: root/game/gst.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/gst.h')
-rw-r--r--game/gst.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/game/gst.h b/game/gst.h
index dc68b31..e86ddc5 100644
--- a/game/gst.h
+++ b/game/gst.h
@@ -56,13 +56,17 @@ class Inv {
std::vector<Tile> tiles;
Ground ground;
- private:
+ 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);
+
std::default_random_engine engine = std::default_random_engine{};
-}
+};
class Gst {
public:
- Gst() { }
+ Gst(Inv *inv) : inv(inv) { }
Inv *inv;
@@ -73,10 +77,7 @@ class Gst {
int day { 0 };
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);