1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/client
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
..
adventureMap Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
battle Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
eventsSDL Add workaround for SDL bug - use old code for buggy SDL versions 2024-09-23 14:02:55 +00:00
globalLobby Implemented generation of player-colored version of DiBoxBck 2024-09-12 21:22:41 +00:00
gui Implemented scaling of hardware cursor 2024-10-09 17:37:54 +00:00
ios ios fix attempt 2024-08-15 00:27:18 +03:00
lobby Merge branch 'develop' into multiple_small_fixes 2024-10-10 14:57:30 +03:00
mainmenu Merge pull request #4588 from Laserlicht/intro_video_rework 2024-09-19 16:18:31 +03:00
mapView Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
media Loading separate audio file in place of audio stream embedded in video 2024-10-07 20:05:45 +00:00
render Fix handling of autoselected interface scaling by client 2024-10-09 17:37:54 +00:00
renderSDL Fix handling of autoselected interface scaling by client 2024-10-09 17:37:54 +00:00
widgets Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
windows Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
xBRZ Fix warnings in xBRZ 2024-08-17 15:25:26 +00:00
ArtifactsUIController.cpp Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
ArtifactsUIController.h suggestions 2024-07-16 00:03:06 +03:00
CGameInfo.cpp Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
CGameInfo.h Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
Client.cpp Replace more usages of pointers to packs with references 2024-10-07 14:59:14 +00:00
Client.h Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
ClientCommandManager.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
ClientCommandManager.h generate assets only when necessary 2024-08-29 00:37:39 +02:00
ClientNetPackVisitors.h rename; introduce factor 2024-09-28 15:05:13 +02:00
CMakeLists.txt Proper support for usage of multiple fonts in a chain 2024-09-24 10:59:35 +00:00
CMT.h address code review comments 2024-08-31 18:14:05 +03:00
ConditionalWait.h Fixes for various minor issues detected by Sonar Cloud 2024-06-01 11:48:30 +00:00
CPlayerInterface.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CPlayerInterface.h IMarket suggestions 2024-08-20 18:49:48 +03:00
CServerHandler.cpp Merge pull request #4736 from Laserlicht/fix_8th_portal_summoning 2024-10-07 22:19:17 +03:00
CServerHandler.h Reduced usage of CPack, replaced with CPackForServer where applicable 2024-10-07 14:59:14 +00:00
GameChatHandler.cpp Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
GameChatHandler.h use MetaString 2024-05-02 21:03:23 +02:00
HeroMovementController.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
HeroMovementController.h Instant movement is now part of standard movement 2024-04-20 14:20:54 +03:00
LobbyClientNetPackVisitors.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
NetPacksClient.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
NetPacksLobbyClient.cpp rename and move window class 2024-09-12 23:35:21 +02:00
PlayerLocalState.cpp Implemented serialization of local player state in json form 2024-10-08 20:04:32 +00:00
PlayerLocalState.h Implemented serialization of local player state in json form 2024-10-08 20:04:32 +00:00
resource.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
ServerRunner.cpp Fix compilation with boost 1.86 2024-09-09 16:59:01 +00:00
ServerRunner.h Fix compilation with boost 1.86 2024-09-09 16:59:01 +00:00
StdInc.cpp Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
StdInc.h Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00