1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +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 Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
CExchangeWindow.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CExchangeWindow.h Merge branch 'vcmi/beta' into 'vcmi/develop' 2024-06-11 19:22:23 +00:00
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 added probabilities 2023-09-17 23:01:18 +02:00
CHeroWindow.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CHeroWindow.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
CKingdomInterface.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CKingdomInterface.h CWindowWithArtifacts remove std::variant 2024-05-20 15:15:46 +03:00
CMapOverview.cpp Fixed minimap generation when upscaled mode is used 2024-08-17 15:25:26 +00:00
CMapOverview.h Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
CMarketWindow.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CMarketWindow.h added CMarketWindow::getMarketTitle() 2024-08-24 13:52:54 +03:00
CMessage.cpp fix { and } in multiline 2024-10-07 18:01:20 +02:00
CMessage.h Code formatting 2024-02-26 18:53:12 +02:00
CPuzzleWindow.cpp Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
CPuzzleWindow.h show/showAll methods now use Canvas instead of SDL_Surface 2023-06-02 16:42:18 +03:00
CQuestLog.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
CQuestLog.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
CreaturePurchaseCard.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
CreaturePurchaseCard.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
CSpellWindow.cpp Finish encapsulation of PlayerLocalState class 2024-10-08 14:17:04 +00:00
CSpellWindow.h resource generation 2024-08-19 23:18:14 +02:00
CTutorialWindow.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
CTutorialWindow.h Added VideoWidget to hide implementation details 2024-05-15 17:05:16 +00:00
CWindowObject.cpp fix xbrz shadow 2024-09-17 23:58:56 +02:00
CWindowObject.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
CWindowWithArtifacts.cpp Merge pull request #4643 from SoundSSGood/CArtHandler-refactoring 2024-10-01 16:26:32 +03:00
CWindowWithArtifacts.h ArtifactsUIController class 2024-07-09 14:27:05 +03:00
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 map drag with right mouse 2024-08-28 22:17:05 +02:00
QuickRecruitmentWindow.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
QuickRecruitmentWindow.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00