aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/GameManager.hpp
diff options
context:
space:
mode:
author CptAlanSmith <123112708+CptAlanSmith@users.noreply.github.com>2023-09-23 20:25:15 +0200
committer GitHub <noreply@github.com>2023-09-23 20:25:15 +0200
commit005a8026bb424779a146e00cc48621ff1d72b807 (patch)
treedde15211e31d861b61711bf6aebdeb8713393d53 /src/openvic-simulation/GameManager.hpp
parentebea2e473eefa3945508b0bf622a472b62d70d3b (diff)
Testing (#23)
* Fixes for building scons * Initial proof of concept auto-testing Shows how we can pull loaded data and display it back * Re-did headless Because hubert insisted it be done like this ;) * Auto-Testing Framework Basics * Requirements Calculations * Fix for messy merge (teach me to use merge tools) * Fixing up misc merge issues to fully reconcile with master changes * Re-added missing getters * Move of testing files due to folder reorgs * Use new accessors + int reading fix --------- Co-authored-by: Hop311 <hop3114@gmail.com>
Diffstat (limited to 'src/openvic-simulation/GameManager.hpp')
-rw-r--r--src/openvic-simulation/GameManager.hpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/openvic-simulation/GameManager.hpp b/src/openvic-simulation/GameManager.hpp
index fa61eaf..9d0c6cd 100644
--- a/src/openvic-simulation/GameManager.hpp
+++ b/src/openvic-simulation/GameManager.hpp
@@ -14,6 +14,7 @@ namespace OpenVic {
struct GameManager {
using state_updated_func_t = std::function<void()>;
+ private:
Map map;
BuildingManager building_manager;
GoodManager good_manager;
@@ -23,7 +24,6 @@ namespace OpenVic {
UnitManager unit_manager;
GameAdvancementHook clock;
- private:
time_t session_start; /* SS-54, as well as allowing time-tracking */
Date today;
state_updated_func_t state_updated;
@@ -36,6 +36,23 @@ namespace OpenVic {
public:
GameManager(state_updated_func_t state_updated_callback);
+ Map& get_map();
+ Map const& get_map() const;
+ BuildingManager& get_building_manager();
+ BuildingManager const& get_building_manager() const;
+ GoodManager& get_good_manager();
+ GoodManager const& get_good_manager() const;
+ PopManager& get_pop_manager();
+ PopManager const& get_pop_manager() const;
+ IdeologyManager& get_ideology_manager();
+ IdeologyManager const& get_ideology_manager() const;
+ IssueManager& get_issue_manager();
+ IssueManager const& get_issue_manager() const;
+ UnitManager& get_unit_manager();
+ UnitManager const& get_unit_manager() const;
+ GameAdvancementHook& get_clock();
+ GameAdvancementHook const& get_clock() const;
+
bool setup();
Date const& get_today() const;