1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/mapeditor/inspector
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
..
armywidget.cpp lib now uses shared_ptr for entities. Removed manual memory management. 2024-05-17 15:04:05 +00:00
armywidget.h Better army widget 2023-09-11 20:37:25 +02:00
armywidget.ui #3864 possibility to search in army setting 2024-05-16 00:24:58 +02:00
heroskillswidget.cpp lib now uses shared_ptr for entities. Removed manual memory management. 2024-05-17 15:04:05 +00:00
heroskillswidget.h Added skills customization 2023-09-11 20:37:25 +02:00
heroskillswidget.ui Added skills customization 2023-09-11 20:37:25 +02:00
herospellwidget.cpp lib now uses shared_ptr for entities. Removed manual memory management. 2024-05-17 15:04:05 +00:00
herospellwidget.h map editor: Allow to customize hero spells 2024-03-24 10:01:20 +01:00
herospellwidget.ui map editor: Allow to customize hero spells 2024-03-24 10:01:20 +01:00
inspector.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
inspector.h Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
messagewidget.cpp Partially implement seerhuts 2022-10-17 01:16:27 +04:00
messagewidget.h Attempt to fix compilation 2022-10-16 15:37:01 +04:00
messagewidget.ui Improved inspector 2023-09-11 20:37:25 +02:00
PickObjectDelegate.cpp PickObject delegate for random dwellings 2023-10-09 01:24:00 +02:00
PickObjectDelegate.h PickObject delegate for random dwellings 2023-10-09 01:24:00 +02:00
portraitwidget.cpp Add hero placeholder properties 2023-10-16 22:24:12 +02:00
portraitwidget.h Add portraits delegate 2023-10-13 20:15:29 +02:00
portraitwidget.ui Add portraits delegate 2023-10-13 20:15:29 +02:00
questwidget.cpp Fix build 2024-09-22 00:11:21 +02:00
questwidget.h New quests implemented 2023-10-10 23:44:29 +02:00
questwidget.ui New quests implemented 2023-10-10 23:44:29 +02:00
rewardswidget.cpp map editor: fix seer visit mode input initialization 2024-05-13 23:00:13 +02:00
rewardswidget.h Add string IDs in map editor 2023-09-28 14:38:31 +02:00
rewardswidget.ui map editor: block remove visit info button if no info to remove 2024-05-13 22:40:26 +02:00
townbuildingswidget.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
townbuildingswidget.h fix some sonarcloud issues 2024-08-01 23:31:06 +02:00
townbuildingswidget.ui map editor: Add bulk actions for buildings in TownBulidingsWidget 2024-07-28 16:28:21 +02:00
towneventdialog.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
towneventdialog.h fix some sonarcloud issues 2024-08-01 23:31:06 +02:00
towneventdialog.ui PR review fixes: 2024-08-01 22:36:01 +02:00
towneventswidget.cpp Players affected by event is now stored as std::set instead of bitmask 2024-08-14 14:13:49 +00:00
towneventswidget.h reduce code duplication 2024-07-28 16:28:21 +02:00
towneventswidget.ui map editor: Allow to customize town events 2024-07-28 16:28:21 +02:00
townspellswidget.cpp fix some sonarcloud issues 2024-08-01 23:31:06 +02:00
townspellswidget.h reduce code duplication 2024-07-28 16:28:21 +02:00
townspellswidget.ui map editor: Allow to customize town spells 2024-07-28 16:28:21 +02:00