aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.hpp
Commit message (Collapse)AuthorAgeLines
* Province const/mutable separation + State cleanupconst-mutable hop3112024-06-06-179/+0
|
* Province text info functionsprovince-text hop3112024-04-24-3/+7
|
* Province port adjacency calculationprovince-positions hop3112024-04-15-0/+1
|
* Rework province position loading and map dims hop3112024-04-15-12/+15
|
* Generate starting unit instancesunits hop3112024-04-15-2/+8
|
* Add Pop attributes + generate test valuespop-menu hop3112024-03-20-0/+6
|
* More impassable adjacencies + WVPM mod fixes hop3112024-01-07-4/+0
|
* feat: calculate province distance using new sqrt functions zaaarf2024-01-02-6/+0
|
* Add `https://github.com/Tessil/ordered-map` Spartan3222023-12-31-2/+3
| | | | | | | | | | | Add is_specialization_of to Utility.hpp Add OpenVic::ordered_map and OpenVic::ordered_set Change `std::map` to `ordered_map` Change `std::set to use `ordered_set` Add `set_callback_pointer(tsl::ordered_set<T const*>& set)` Add mutable_iterator to enable mutable value iterator for `tsl::ordered_map` Add std::hash<OpenVic::Date> implementation Enable deps/SCsub to expose dependency includes neccessary for inclusion
* Clock refactor + misc small fixes hop3112023-12-28-2/+1
|
* feat: loading climate.txt and continent.txt zaaarf2023-12-27-0/+6
|
* Made ProvinceSet use Province const* and updated Region loading hop3112023-12-27-1/+1
|
* Province building scaffolding hop3112023-12-25-1/+1
|
* Additional adjacency loading BuildTools2023-12-17-14/+55
|
* Calculate distance between adjacencies wvpm2023-12-13-3/+7
|
* Merge pull request #89 from OpenVicProject/dataloading-pop-history Hop3112023-12-13-1/+1
|\ | | | | Pop History Loading (with the new system)
| * Province pop history + country government flag override refactors hop3112023-12-13-0/+1
| |
| * feat: implemented pop history loading zaaarf2023-12-10-1/+0
| |
* | Calculate and assign province centers wvpm2023-12-11-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed generate_and_load_province_adjacencies to initialize_province_adjacencies_and_center Calculate and assign province centers Ignore null index and substract 1 Moved province center calculation to load_map_images Revert "Renamed generate_and_load_province_adjacencies to initialize_province_adjacencies_and_center" This reverts commit 8b75bb8f1ea79e883b97987a3a85e254fa3e714b. Remove 0 as vector initial values. Revert "Wait for key to close headless" This reverts commit c7a4956de520a8c3ec53c3b68440b7056f9f5dd6. Use idx instead of province.index -1 Use array_index instead of pixel_index to identify province. Unindent set_terrain Reverted changes in _generate_province_adjacencies Move province center code out of set_terrain Divide by zero check Move province center logic back into set_terrain
* feat: improved identifier registry macro zaaarf2023-12-10-2/+1
|
* Meta regions being used to make states fix hop3112023-12-08-1/+1
|
* Vec/set callbacks + crime file + prov building pos hop3112023-12-07-8/+5
|
* Merge pull request #79 from OpenVicProject/states BrickPi2023-12-05-1/+3
|\
| * States First Pass Joel Machens2023-11-28-1/+3
| |
* | Crime+event modifier loading + misc UI backend hop3112023-12-02-0/+1
|/
* Misc changes hop3112023-11-16-1/+1
|
* Bookmark loading + province and building cleanup hop3112023-11-15-50/+29
|
* Striped mapmode and improved distributions hop3112023-11-15-6/+6
|
* Apply Province Histories BrickPi2023-11-12-0/+14
|
* Cross-platform file lookup (case and separator) hop3112023-11-07-4/+5
|
* History loading changes + PROPERTY macro hop3112023-11-07-0/+4
|
* Stop passing Dates by reference hop3112023-11-07-2/+2
|
* TGC compatibility fixes + other cleanup hop3112023-10-13-1/+2
|
* Further cleanup and rearrangement hop3112023-10-13-2/+1
|
* Lots of accumulated changes hop3112023-10-12-1/+1
|
* Fix positions.txt Edge Cases Joel Machens2023-10-03-1/+0
|
* Implement positions.txt Loading Joel Machens2023-10-03-0/+20
|
* Removed unnecessary `const std::string_view`s Hop3112023-09-28-2/+2
|
* feat: renamed Building to BuildingInstance, implemented Building and ↵ zaaarf2023-09-28-4/+4
| | | | BuildingType defines
* Calculate terrain types from pixels Hop3112023-09-25-2/+11
|
* Testing (#23) CptAlanSmith2023-09-23-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* fix: various tweaks during review zaaarf2023-09-19-2/+6
|
* fix: adjacency algorithm optimisiations and fixes zaaarf2023-09-19-4/+4
|
* feat: added adjacency to provinces zaaarf2023-09-19-0/+19
|
* Futher scaffolding for province positions loading Hop3112023-09-17-1/+1
|
* Scaffolding for `positions.txt` + modifier loading Hop3112023-09-16-0/+2
|
* Meta region loading Hop3112023-09-14-2/+3
|
* Format cleanup and req comments Hop3112023-09-09-0/+1
|
* More refactoring and duplicate code removal Hop3112023-09-08-0/+65