aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Map.cpp
Commit message (Collapse)AuthorAgeLines
* Reworked ReturnByValue, warn_or_error, expect_date_[identifier_or_]string hop3112024-02-04-1/+1
|
* Added reserve_more, expect_dictionary_key[s|_map]_reserve_length[_and_default]reserve_more hop3112024-01-23-65/+81
|
* Added map_callback and expect_item_dictionary_reserve_length hop3112024-01-08-0/+2
|
* More impassable adjacencies + WVPM mod fixes hop3112024-01-07-39/+54
|
* Mutually exclusive rule groups + modded building rules hop3112024-01-03-1/+1
|
* feat: calculate province distance using new sqrt functions zaaarf2024-01-02-2/+169
|
* Add `https://github.com/Tessil/ordered-map` Spartan3222023-12-31-2/+2
| | | | | | | | | | | 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-3/+6
|
* feat: loading climate.txt and continent.txt zaaarf2023-12-27-0/+90
|
* Made ProvinceSet use Province const* and updated Region loading hop3112023-12-27-46/+20
|
* Province building scaffolding hop3112023-12-25-9/+15
|
* Merge pull request #100 from OpenVicProject/change/colour_t_to_struct George L. Albany2023-12-24-29/+32
|\
| * Change colour_t to be a strongly typed structure Spartan3222023-12-24-29/+32
| | | | | | | | | | | | | | Make RGB default of `colour_t` Distinguish RGB and ARGB colors by type and colour_traits Add `_colour` and `_argb` colour user-defined literals Add `OpenVic::utility::unreachable`
* | Fixed TGC compatibility + misc cleanup hop3112023-12-23-1/+1
|/
* Additional adjacency loading BuildTools2023-12-17-84/+102
|
* Calculate distance between adjacencies wvpm2023-12-13-3/+5
|
* Merge pull request #89 from OpenVicProject/dataloading-pop-history Hop3112023-12-13-0/+7
|\ | | | | Pop History Loading (with the new system)
| * Province pop history + country government flag override refactors hop3112023-12-13-0/+7
| |
* | Calculate and assign province centers wvpm2023-12-11-21/+50
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+0
|
* Vec/set callbacks + crime file + prov building pos hop3112023-12-07-10/+6
|
* Crime+event modifier loading + misc UI backend hop3112023-12-02-12/+0
|
* chore: use PROPERTY and its variants when possible zaaarf2023-11-22-4/+0
|
* Misc changes hop3112023-11-16-1/+1
|
* Bookmark loading + province and building cleanup hop3112023-11-15-4/+19
|
* Striped mapmode and improved distributions hop3112023-11-15-11/+18
|
* Cross-platform file lookup (case and separator) hop3112023-11-07-1/+7
|
* History loading changes + PROPERTY macro hop3112023-11-07-1/+1
|
* Stop passing Dates by reference hop3112023-11-07-2/+2
|
* Clang-format formatting (with manual cleanup) hop3112023-10-29-56/+63
|
* Astyle formatting (with manual cleanup) hop3112023-10-29-24/+51
|
* Minor cleanup hop3112023-10-20-8/+0
|
* TGC compatibility fixes + other cleanup hop3112023-10-13-4/+4
|
* Further cleanup and rearrangement hop3112023-10-13-1/+1
|
* Lots of accumulated changes hop3112023-10-12-0/+5
|
* Removed unnecessary `const std::string_view`s Hop3112023-09-28-5/+5
|
* Expect modifier value + keys function Hop3112023-09-26-1/+1
|
* Added review comments Hop3112023-09-25-0/+4
|
* Calculate terrain types from pixels Hop3112023-09-25-10/+26
|
* Adding terrain image/type loading Hop3112023-09-25-111/+128
|
* 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>
* Various fixes, refactors and general cleanup Hop3112023-09-23-19/+17
|
* fix: various tweaks during review zaaarf2023-09-19-20/+18
|
* fix: adjacency algorithm optimisiations and fixes zaaarf2023-09-19-9/+7
|
* feat: make adjacency generator returns false if nothing changed zaaarf2023-09-19-6/+10
|
* feat: implemented dumb basic algorithm for Map::_generate_province_adjacencies() zaaarf2023-09-19-6/+30
|
* Province adjacency scaffolding Hop3112023-09-18-72/+31
|
* Futher scaffolding for province positions loading Hop3112023-09-17-3/+3
|
* Scaffolding for `positions.txt` + modifier loading Hop3112023-09-16-1/+20
|
* First go at Modifiers Hop3112023-09-15-3/+0
|