1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/AI/Nullkiller
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
..
Analyzers Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
Behaviors Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
Engine Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
Goals Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
Helpers Merge pull request #4313 from vcmi/nkai-whirlpool 2024-07-24 00:03:11 +03:00
Markers NKAI: port exploration from VCAI 2024-05-20 23:50:13 +03:00
Pathfinding NKAI: replace hardcoded pandora with more flexible solution 2024-09-20 16:05:57 +03:00
AIGateway.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
AIGateway.h IMarket suggestions 2024-08-20 18:49:48 +03:00
AIUtility.cpp Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
AIUtility.h Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
CMakeLists.txt TBB is now a dependency of lib. Implemented multithreaded xBRZ scale 2024-08-17 15:25:26 +00:00
main.cpp Reduced usage of global variables - removed or made const / constexpr 2024-02-12 13:49:45 +02:00
pforeach.h NKAI: fix headless and compilation 2024-03-24 13:16:46 +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