1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/mapeditor
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
..
icons Remove renamed icons 2024-06-29 00:55:25 +09:00
inspector Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
mapsettings Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
resourceExtractor Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
translation Update Portuguese Translation 2024-09-30 22:35:19 -03:00
Animation.cpp Map editor: Transparency fix 2024-10-03 11:55:58 +03:00
Animation.h Remove creations of custom animations in runtime 2024-07-19 10:08:50 +00:00
BitmapHandler.cpp Always use ResourcePath for referencing images and animations 2023-09-04 18:22:34 +03:00
BitmapHandler.h mapeditor: use vcmi_endian.h 2023-02-03 00:39:44 +03:00
CMakeLists.txt Fix static linking 2024-10-09 11:27:43 +03:00
generatorprogress.cpp
generatorprogress.h
generatorprogress.ui
graphics.cpp Code review followup with additional refactor 2024-08-23 10:43:48 +02:00
graphics.h Stabilization 2024-01-19 13:55:22 +02:00
main.cpp #2590 enable high dpi 2024-05-16 00:32:15 +02:00
mainwindow.cpp map-editor: add hero placeholder with heroType defined to reservedCampaignHeroes on map save 2024-08-22 16:53:43 +02:00
mainwindow.h Changed settings location for Qt apps to be in line with main game 2024-06-08 15:31:40 +00:00
mainwindow.ui Embed mapeditor resources 2024-06-29 00:53:01 +09:00
mapcontroller.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
mapcontroller.h Mod compatibility check is now in a separate class and not part of 2023-11-08 21:27:05 +02:00
mapeditor.ico
mapeditor.rc
mapeditorroles.h PR review fixes: 2024-08-01 22:36:01 +02:00
maphandler.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
maphandler.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
mapview.cpp lib now uses shared_ptr for entities. Removed manual memory management. 2024-05-17 15:04:05 +00:00
mapview.h Add line and fill brushes 2023-10-14 02:58:13 +02:00
objectbrowser.cpp Use auto instead of redundant type in initializations using new 2024-01-16 21:40:53 +00:00
objectbrowser.h
playerparams.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
playerparams.h Town picker in player settings implemented 2023-09-11 20:37:26 +02:00
playerparams.ui Object picker implemented 2023-09-11 20:37:26 +02:00
playersettings.cpp Remove excessive CMap.h includes 2023-05-31 23:18:38 +03:00
playersettings.h code style 2024-06-13 21:35:30 +03:00
playersettings.ui Allow single player on map and fix player params initialization 2023-04-02 14:31:57 +04:00
resources.qrc Embed mapeditor resources 2024-06-29 00:53:01 +09:00
scenelayer.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
scenelayer.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
StdInc.cpp Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
StdInc.h Separate vcmiqt lib 2024-10-07 08:47:00 +03:00
validator.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
validator.h Code review followup with additional refactor 2024-08-23 10:43:48 +02:00
validator.ui
vcmieditor.desktop cz consisteny 2023-12-29 16:56:04 +01:00
windownewmap.cpp Separate vcmiqt lib 2024-10-07 08:47:00 +03:00
windownewmap.h code style 2024-06-13 21:35:30 +03:00
windownewmap.ui Map editor: Add road types to RMG options 2024-09-16 17:35:42 +03:00