1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/server
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
..
battles Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
processors Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
queries Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
CGameHandler.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CGameHandler.h Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
CMakeLists.txt Move visit query to a separate class, remove no longer needed Cast.h 2024-09-04 14:32:36 +00:00
CVCMIServer.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
CVCMIServer.h Replaced unique_ptr with simple references to packs 2024-10-07 14:59:14 +00:00
GlobalLobbyProcessor.cpp JsonNode constructors: Take fileName as argument 2024-07-17 13:50:59 +02:00
GlobalLobbyProcessor.h Store and send mod list and game version for game rooms 2024-04-23 17:15:59 +03:00
LobbyNetPackVisitors.h basic handicap support 2024-07-25 00:28:01 +02:00
NetPacksLobbyServer.cpp Replaced unique_ptr with simple references to packs 2024-10-07 14:59:14 +00:00
NetPacksServer.cpp Merge pull request #4741 from IvanSavenko/serialize_local_state 2024-10-10 15:03:14 +03:00
ServerNetPackVisitors.h Implemented serialization of local player state in json form 2024-10-08 20:04:32 +00:00
ServerSpellCastEnvironment.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
ServerSpellCastEnvironment.h Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
StdInc.cpp Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
StdInc.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
TurnTimerHandler.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
TurnTimerHandler.h It is now possible to vote for simturns and turn timer changes 2024-05-19 18:31:32 +00:00