1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/AI/VCAI/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 Fix "identical expressions on both sides of comparison" 2024-02-12 12:32:35 +02:00
AbstractGoal.h Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
AdventureSpellCast.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
AdventureSpellCast.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Build.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
Build.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01: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 redundant virtual specifiers 2024-02-10 20:46:13 +01:00
BuyArmy.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
BuyArmy.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CGoal.h Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00
ClearWayTo.cpp Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
ClearWayTo.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CollectRes.cpp Disable broken visitation of external markets for VCAI 2024-04-22 15:46:51 +03:00
CollectRes.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CompleteQuest.cpp Fixed loading of text strings for hota quests 2024-04-22 13:49:17 +03:00
CompleteQuest.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Conquer.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
Conquer.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
DigAtTile.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
DigAtTile.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Explore.cpp Added 'Serializeable' base class for classes serializeable by pointer 2024-05-16 18:40:59 +00:00
Explore.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
FindObj.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
FindObj.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
GatherArmy.cpp lib now uses shared_ptr for entities. Removed manual memory management. 2024-05-17 15:04:05 +00:00
GatherArmy.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
GatherTroops.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
GatherTroops.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
GetArtOfType.cpp Replaced boost::thread_specific_ptr with thread_local 2023-08-23 16:32:29 +03:00
GetArtOfType.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Goals.h
Invalid.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
RecruitHero.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
RecruitHero.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Trade.cpp
Trade.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
VisitHero.cpp Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
VisitHero.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
VisitObj.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
VisitObj.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
VisitTile.cpp Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
VisitTile.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
Win.cpp Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
Win.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00