1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/AI/Nullkiller/Goals
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
..
AbstractGoal.cpp NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
AbstractGoal.h NKAI: speedup exploration a bit 2024-05-22 22:49:11 +03:00
AdventureSpellCast.cpp NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
AdventureSpellCast.h NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
Build.cpp Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
Build.h Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
BuildBoat.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
BuildBoat.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
BuildThis.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
BuildThis.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
BuyArmy.cpp Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
BuyArmy.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
CaptureObject.cpp NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
CaptureObject.h Remove access to text translation system from AI 2024-07-03 21:13:55 +00:00
CGoal.h Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00
CompleteQuest.cpp Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
CompleteQuest.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
Composition.cpp NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
Composition.h NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
DigAtTile.cpp NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
DigAtTile.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
DismissHero.cpp NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
DismissHero.h NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
ExchangeSwapTownHeroes.cpp NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
ExchangeSwapTownHeroes.h NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
ExecuteHeroChain.cpp NKAI: whirlpool 2024-07-21 17:20:54 +03:00
ExecuteHeroChain.h NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
ExploreNeighbourTile.cpp NKAI: replace hardcoded pandora with more flexible solution 2024-09-20 16:05:57 +03:00
ExploreNeighbourTile.h NKAI: speedup exploration a bit 2024-05-22 22:49:11 +03:00
GatherArmy.cpp Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
GatherArmy.h Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
Goals.h NKAI: namespace 2022-10-04 08:40:14 +03:00
Invalid.h NKAI: remove static ai field 2024-03-31 21:11:25 +03:00
RecruitHero.cpp NKAI: Do not visit town on recruiting hero 2024-09-19 16:44:48 +00:00
RecruitHero.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
SaveResources.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
SaveResources.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
StayAtTown.cpp NKAI: allow multiple tasks to be executed from one calculation 2024-04-14 16:46:05 +03:00
StayAtTown.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
Trade.cpp NKAI: namespace 2022-10-04 08:40:14 +03:00
Trade.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00