aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.hpp
Commit message (Collapse)AuthorAgeLines
* 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