1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/lib/pathfinder
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
..
CGPathNode.cpp
CGPathNode.h Reduce size of CGPathNode and AIPathNode 2024-07-15 07:49:04 +00:00
CPathfinder.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CPathfinder.h NKAI: whirlpool 2024-07-21 17:20:54 +03:00
INodeStorage.h NKAI: remove 5th dimension 2024-03-24 09:32:54 +02:00
NodeStorage.cpp Remove excessive copies of large objects 2024-07-03 21:14:22 +00:00
NodeStorage.h NKAI: remove 5th dimension 2024-03-24 09:32:54 +02:00
PathfinderOptions.cpp Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
PathfinderOptions.h Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
PathfinderUtil.h Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00
PathfindingRules.cpp Better comments, remove dead code 2024-05-28 13:43:16 +00:00
PathfindingRules.h
TurnInfo.cpp remove never used code in CBonusSystemNode 2024-08-25 14:15:21 +02:00
TurnInfo.h Removed remaining usages of std::vector<bool> 2023-11-15 15:55:18 +02:00