diff options
author | Hop311 <Hop3114@gmail.com> | 2023-05-22 17:54:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 17:54:15 +0200 |
commit | 08ec6fe5fbf52d814d88c235aac84bb95ad4e322 (patch) | |
tree | 136a221eb5e7c895c8219778b3d206f2ed9e8e7f /src/openvic/map/Province.cpp | |
parent | 15e960f93ced8c94a6a45ebb2b44d0705ff7f8f6 (diff) | |
parent | 7874702f30d5855319faf197b10aed31f07f5e27 (diff) |
Merge pull request #5 from OpenVicProject/bmp
BMP palette parser + code style cleanup
Diffstat (limited to 'src/openvic/map/Province.cpp')
-rw-r--r-- | src/openvic/map/Province.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/openvic/map/Province.cpp b/src/openvic/map/Province.cpp index b169021..d2a5ecf 100644 --- a/src/openvic/map/Province.cpp +++ b/src/openvic/map/Province.cpp @@ -1,13 +1,16 @@ #include "Province.hpp" #include <cassert> -#include <sstream> #include <iomanip> +#include <sstream> using namespace OpenVic; -Province::Province(index_t new_index, std::string const& new_identifier, colour_t new_colour) : - HasIdentifier{ new_identifier }, HasColour{ new_colour }, index{ new_index }, buildings{ "buildings" } { +Province::Province(index_t new_index, std::string const& new_identifier, colour_t new_colour) + : HasIdentifier { new_identifier }, + HasColour { new_colour }, + index { new_index }, + buildings { "buildings" } { assert(index != NULL_INDEX); } @@ -66,7 +69,6 @@ std::string Province::to_string() const { void Province::update_state(Date const& today) { for (Building& building : buildings.get_items()) building.update_state(today); - } void Province::tick(Date const& today) { |