1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/client/adventureMap
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
..
AdventureMapInterface.cpp Merge branch 'vcmi/beta' into 'vcmi/develop' 2024-09-23 14:25:53 +00:00
AdventureMapInterface.h Reduce direct access to CAnimation, removed various caching schemes 2024-07-19 10:08:50 +00:00
AdventureMapShortcuts.cpp Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
AdventureMapShortcuts.h Add unassigned by default hotkeys to show visitable or blocked tiles 2024-07-19 19:38:40 +00:00
AdventureMapWidget.cpp Implemented generation of player-colored version of DiBoxBck 2024-09-12 21:22:41 +00:00
AdventureMapWidget.h Fixed player-coloring on adventure map 2024-07-19 10:08:50 +00:00
AdventureOptions.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
AdventureOptions.h add info for not implemented replay; reorder button code; fix exit position 2024-01-27 17:36:19 +01:00
AdventureState.h Fix activation of world view on end turn in multiplayer 2024-08-04 13:19:12 +00:00
CInfoBar.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
CInfoBar.h Split off some netpack structures into separate files 2023-10-23 13:59:15 +03:00
CInGameConsole.cpp Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
CInGameConsole.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
CList.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CList.h use Strg instead mouse pos 2024-08-09 22:50:09 +02:00
CMinimap.cpp Fixed minimap generation when upscaled mode is used 2024-08-17 15:25:26 +00:00
CMinimap.h
CResDataBar.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
CResDataBar.h Unified naming of method to recolor UI element to current player scheme 2024-07-19 10:08:50 +00:00
MapAudioPlayer.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
MapAudioPlayer.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
TurnTimerWidget.cpp Renamed & unified OBJECT_CONSTRUCTION macro set 2024-08-09 15:30:04 +00:00
TurnTimerWidget.h Fixed timer countdown sound playback 2023-12-22 22:46:29 +02:00