1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/client/windows
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
..
settings Fix handling of autoselected interface scaling by client 2024-10-09 17:37:54 +00:00
CCastleInterface.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CCastleInterface.h code review + text 2024-09-28 16:10:03 +02:00
CCreatureWindow.cpp Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
CCreatureWindow.h
CExchangeWindow.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CExchangeWindow.h
CHeroBackpackWindow.cpp add sort buttons 2024-10-02 13:35:08 +03:00
CHeroBackpackWindow.h add sort buttons 2024-10-02 13:35:08 +03:00
CHeroOverview.cpp Fix crash on accessing hero preview in map setup 2024-09-12 20:13:02 +00:00
CHeroOverview.h
CHeroWindow.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CHeroWindow.h
CKingdomInterface.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CKingdomInterface.h
CMapOverview.cpp
CMapOverview.h
CMarketWindow.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CMarketWindow.h
CMessage.cpp fix { and } in multiline 2024-10-07 18:01:20 +02:00
CMessage.h
CPuzzleWindow.cpp
CPuzzleWindow.h
CQuestLog.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
CQuestLog.h
CreaturePurchaseCard.cpp
CreaturePurchaseCard.h
CSpellWindow.cpp Finish encapsulation of PlayerLocalState class 2024-10-08 14:17:04 +00:00
CSpellWindow.h
CTutorialWindow.cpp
CTutorialWindow.h
CWindowObject.cpp fix xbrz shadow 2024-09-17 23:58:56 +02:00
CWindowObject.h
CWindowWithArtifacts.cpp Merge pull request #4643 from SoundSSGood/CArtHandler-refactoring 2024-10-01 16:26:32 +03:00
CWindowWithArtifacts.h
GUIClasses.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
GUIClasses.h optimize videowindow (black bg) 2024-09-22 17:03:20 +02:00
InfoWindows.cpp Merge pull request #4531 from Laserlicht/mouse_right_drag 2024-09-19 16:42:33 +03:00
InfoWindows.h
QuickRecruitmentWindow.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
QuickRecruitmentWindow.h