1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/client/widgets
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
..
markets Remove marketModes as member 2024-08-27 14:07:00 +00:00
Buttons.cpp allow double click for bonus selection 2024-09-06 00:22:59 +02:00
Buttons.h allow double click for bonus selection 2024-09-06 00:22:59 +02:00
CArtifactsOfHeroAltar.cpp CArtifactsOfHeroBase refactoring 2024-05-21 12:05:07 +03:00
CArtifactsOfHeroAltar.h Artifacts altar ctrl+click 2024-05-20 11:47:12 +03:00
CArtifactsOfHeroBackpack.cpp Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
CArtifactsOfHeroBackpack.h fixed missed trader text 2024-03-25 17:38:43 +02:00
CArtifactsOfHeroBase.cpp CArtifactSet cleanup 2024-09-23 23:39:19 +03:00
CArtifactsOfHeroBase.h CMap put move and remove artifact method 2024-09-23 23:30:38 +03:00
CArtifactsOfHeroKingdom.cpp CArtifactsOfHeroBase refactoring 2024-05-21 12:05:07 +03:00
CArtifactsOfHeroKingdom.h Reset picked artifact on window deactivation 2024-04-11 23:52:37 +03:00
CArtifactsOfHeroMain.cpp Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00
CArtifactsOfHeroMain.h Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00
CArtifactsOfHeroMarket.cpp CArtifactsOfHeroBase refactoring 2024-05-21 12:05:07 +03:00
CArtifactsOfHeroMarket.h CArtifactsOfHeroBase refactoring 2024-05-21 12:05:07 +03:00
CArtPlace.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
CArtPlace.h ArtifactsUIController class 2024-07-09 14:27:05 +03:00
CComponent.cpp better UI 2024-09-28 02:34:18 +02:00
CComponent.h better UI 2024-09-28 02:34:18 +02:00
CExchangeController.cpp Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
CExchangeController.h CWindowWithArtifacts preparations 2024-04-23 16:06:58 +03:00
CGarrisonInt.cpp Remove no longer used DISPOSE flag from CIntObject 2024-08-09 15:50:37 +00:00
CGarrisonInt.h Show option description on hovering 2023-07-21 15:47:42 +03:00
ComboBox.cpp Restore previously disabled functionality 2024-02-29 16:47:44 +02:00
ComboBox.h First version that works in lobby 2024-02-29 12:45:08 +01:00
CreatureCostBox.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
CreatureCostBox.h vcmi: massive refactoring v1 2023-04-05 22:33:12 +03:00
CTextInput.cpp Moved fonts handling from Graphics to RenderHandler class 2024-09-23 15:43:11 +00:00
CTextInput.h add help text 2024-07-29 00:54:58 +02:00
GraphicalPrimitiveCanvas.cpp resource selection 2024-08-13 22:40:37 +02:00
GraphicalPrimitiveCanvas.h resource selection 2024-08-13 22:40:37 +02:00
Images.cpp Implemented generation of player-colored version of DiBoxBck 2024-09-12 21:22:41 +00:00
Images.h Implemented generation of player-colored version of DiBoxBck 2024-09-12 21:22:41 +00:00
MiscWidgets.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
MiscWidgets.h moveChildForeground 2024-08-03 17:04:27 +03:00
ObjectLists.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
ObjectLists.h Reduce direct access to CAnimation, removed various caching schemes 2024-07-19 10:08:50 +00:00
RadialMenu.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
RadialMenu.h code review 2023-10-16 00:04:29 +02:00
Scrollable.cpp Renamed gesture-related methods, remove unused code 2023-06-20 19:58:05 +03:00
Scrollable.h Renamed gesture-related methods, remove unused code 2023-06-20 19:58:05 +03:00
Slider.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
Slider.h Fix infinitely updating simultaneous turns slider 2024-08-02 12:20:14 +00:00
TextControls.cpp Moved fonts handling from Graphics to RenderHandler class 2024-09-23 15:43:11 +00:00
TextControls.h Moved CTextInput to a separate file. No changes in logic 2024-05-15 12:45:45 +00:00
VideoWidget.cpp scaling 2024-09-12 23:06:33 +02:00
VideoWidget.h scaling 2024-09-12 23:06:33 +02:00