1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/client/battle
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
..
BattleActionsController.cpp Better handling of default cursor action for SPELL_LIKE_ATTACK 2024-09-22 21:14:24 +02:00
BattleActionsController.h Add hex highlight for SPELL_LIKE_ATTACK in casting mode & minor cleanup 2024-09-22 20:38:49 +02:00
BattleAnimationClasses.cpp Support for configurable town fortifications 2024-08-28 19:42:14 +00:00
BattleAnimationClasses.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
BattleConstants.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
BattleEffectsController.cpp Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
BattleEffectsController.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
BattleFieldController.cpp Add hex highlight for SPELL_LIKE_ATTACK in casting mode & minor cleanup 2024-09-22 20:38:49 +02:00
BattleFieldController.h Moved range highlight transforms to config file 2024-07-19 10:08:50 +00:00
BattleInterface.cpp Support for configurable town fortifications 2024-08-28 19:42:14 +00:00
BattleInterface.h Unified handling of battle sides ID's 2024-08-11 20:54:44 +00:00
BattleInterfaceClasses.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
BattleInterfaceClasses.h Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
BattleObstacleController.cpp Unified handling of battle sides ID's 2024-08-11 20:54:44 +00:00
BattleObstacleController.h Remove creations of custom animations in runtime 2024-07-19 10:08:50 +00:00
BattleOverlayLogVisualizer.cpp Moved fonts handling from Graphics to RenderHandler class 2024-09-23 15:43:11 +00:00
BattleOverlayLogVisualizer.h Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
BattleProjectileController.cpp Support for configurable town fortifications 2024-08-28 19:42:14 +00:00
BattleProjectileController.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
BattleRenderer.cpp Visual logger colored text 2024-08-10 19:13:09 +03:00
BattleRenderer.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
BattleSiegeController.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
BattleSiegeController.h Support for configurable town fortifications 2024-08-28 19:42:14 +00:00
BattleStacksController.cpp Merge pull request #4654 from dydzio0614/any-hex-shooting 2024-09-27 19:23:33 +03:00
BattleStacksController.h implement spells 2023-12-23 14:51:26 +01:00
BattleWindow.cpp Merge pull request #4643 from SoundSSGood/CArtHandler-refactoring 2024-10-01 16:26:32 +03:00
BattleWindow.h Merge branch 'develop' into quickspell 2024-07-18 21:24:42 +02:00
CreatureAnimation.cpp xBRZ-upscaled images now support common palette-transform effects: 2024-08-17 15:25:26 +00:00
CreatureAnimation.h xBRZ-upscaled images now support common palette-transform effects: 2024-08-17 15:25:26 +00:00