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
CArtifactsOfHeroAltar.h
CArtifactsOfHeroBackpack.cpp Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
CArtifactsOfHeroBackpack.h
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
CArtifactsOfHeroKingdom.h
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
CArtifactsOfHeroMarket.h
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
CExchangeController.h
CGarrisonInt.cpp Remove no longer used DISPOSE flag from CIntObject 2024-08-09 15:50:37 +00:00
CGarrisonInt.h
ComboBox.cpp
ComboBox.h
CreatureCostBox.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
CreatureCostBox.h
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
Scrollable.cpp
Scrollable.h
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
VideoWidget.cpp scaling 2024-09-12 23:06:33 +02:00
VideoWidget.h scaling 2024-09-12 23:06:33 +02:00