1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00
vcmi/AI/VCAI
Ivan Savenko 3dd4fa2528 Reduce usage of pointers to VLC entities
Final goal (of multiple PR's) is to remove all remaining pointers from
serializeable game state, and replace them with either identifiers or
with shared/unique pointers.

CGTownInstance::town and CGHeroInstance::type members have been removed.
Now this data is computed dynamically using subID member.

VLC entity of a town can now be accessed via following methods:
- getFactionID() returns ID of a faction
- getFaction() returns pointer to a faction
- getTown() returns pointer to a town

VLC entity of a hero can now be accessed via following methods:
- getHeroTypeID() returns ID of a hero
- getHeroClassID() returns ID of a hero class
- getHeroType() returns pointer to a hero
- getHeroClass() returns pointer to a hero class
2024-10-10 12:28:08 +00:00
..
Goals Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
Pathfinding Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
AIhelper.cpp Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
AIhelper.h vcmi: use std::optional 2023-04-17 00:43:13 +03:00
AIUtility.cpp Converted all h3 banks to rewardable, remove most of hardcoded checks 2024-09-12 12:11:18 +00:00
AIUtility.h Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
ArmyManager.cpp Renamed speed -> getMovementRange, remove misleading default parameter 2024-01-14 17:14:36 +02:00
ArmyManager.h Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
BuildingManager.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
BuildingManager.h Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
CMakeLists.txt Removed cmake_modules/VCMI_lib macro, use it directly in place 2024-02-11 20:38:24 +02:00
FuzzyEngines.cpp Converted all h3 banks to rewardable, remove most of hardcoded checks 2024-09-12 12:11:18 +00:00
FuzzyEngines.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
FuzzyHelper.cpp Removed hardcoded checks for map objects in favor of analyzing 2024-09-12 12:11:18 +00:00
FuzzyHelper.h Converted all h3 banks to rewardable, remove most of hardcoded checks 2024-09-12 12:11:18 +00:00
main.cpp Reduced usage of global variables - removed or made const / constexpr 2024-02-12 13:49:45 +02:00
MapObjectsEvaluator.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
MapObjectsEvaluator.h Fix build 2023-06-03 00:48:32 +03:00
ResourceManager.cpp Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
ResourceManager.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
StdInc.cpp Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
StdInc.h Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
VCAI.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
VCAI.h IMarket suggestions 2024-08-20 18:49:48 +03:00