1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/server/processors
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
..
HeroPoolProcessor.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
HeroPoolProcessor.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
NewTurnProcessor.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
NewTurnProcessor.h Growth of town garrison in neutral towns now uses H3 logic 2024-08-29 15:22:31 +00:00
PlayerMessageProcessor.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
PlayerMessageProcessor.h vcmiscrolls 2024-09-05 15:51:45 +03:00
TurnOrderProcessor.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
TurnOrderProcessor.h Implemented simple versioning system for multiplayer 2024-05-29 20:08:32 +00:00