diff options
Diffstat (limited to 'src/openvic-simulation/map/State.hpp')
-rw-r--r-- | src/openvic-simulation/map/State.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/openvic-simulation/map/State.hpp b/src/openvic-simulation/map/State.hpp index e9f41c4..e403580 100644 --- a/src/openvic-simulation/map/State.hpp +++ b/src/openvic-simulation/map/State.hpp @@ -15,16 +15,19 @@ namespace OpenVic { Province::colony_status_t PROPERTY_RW(colony_status); public: - State(Country const* owner, Province const* capital, Region::provinces_t&& provinces, Province::colony_status_t colony_status); + State( + Country const* owner, Province const* capital, Region::provinces_t&& provinces, + Province::colony_status_t colony_status + ); }; inline bool operator==(const State& lhs, const State& rhs) { - return (lhs.get_owner() == rhs.get_owner() && lhs.get_colony_status() == rhs.get_colony_status()); + return (lhs.get_owner() == rhs.get_owner() && lhs.get_colony_status() == rhs.get_colony_status()); } struct StateSet { using states_t = std::deque<State>; - + private: Region const* PROPERTY(region); states_t states; @@ -44,8 +47,8 @@ namespace OpenVic { public: /* Creates states from current province gamestate & regions, sets province state value. - After this function, the `regions` property is unmanaged and must be carefully updated and - validated by functions that modify it. */ + * After this function, the `regions` property is unmanaged and must be carefully updated and + * validated by functions that modify it. */ void generate_states(Map const& map); }; } // namespace OpenVic |