1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/lib/gameState
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
..
CGameState.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CGameState.h Replace more usages of pointers to packs with references 2024-10-07 14:59:14 +00:00
CGameStateCampaign.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CGameStateCampaign.h Added 'Serializeable' base class for classes serializeable by pointer 2024-05-16 18:40:59 +00:00
EVictoryLossCheckResult.h Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
GameStatistics.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
GameStatistics.h All objects that can be owned by player now implement IOwnableObject 2024-08-28 12:51:28 +00:00
HighScore.cpp PlayerState now stores all objects owned by player 2024-08-28 12:51:27 +00:00
HighScore.h highscore refactoring 2024-08-02 19:37:46 +02:00
InfoAboutArmy.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
InfoAboutArmy.h Improvements to type safety of Identifier class 2023-10-04 18:05:23 +03:00
QuestInfo.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
RumorState.cpp Fix merge 2024-07-16 13:13:39 +00:00
RumorState.h Moved generation of new rumors to server 2024-07-16 13:13:39 +00:00
SThievesGuildInfo.h Fix issues introduced by fixing typos 2024-06-27 08:38:04 +00:00
TavernHeroesPool.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
TavernHeroesPool.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
TavernSlot.h Update tavern on end of 7th turn of player in question 2023-08-24 23:34:33 +03:00