1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/lib/spells
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
..
effects Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
AbilityCaster.cpp Remove explicit convesion to int in operators 2023-11-15 15:55:19 +02:00
AbilityCaster.h Remove explicit convesion to int in operators 2023-11-15 15:55:19 +02:00
AdventureSpellMechanics.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
AdventureSpellMechanics.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
BattleSpellMechanics.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
BattleSpellMechanics.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
BonusCaster.cpp Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
BonusCaster.h vcmi: rework ProxyCaster 2023-03-30 14:41:40 +03:00
CSpellHandler.cpp Minor refactoring of translations: 2024-10-06 19:42:15 +00:00
CSpellHandler.h cast only on self 2024-09-28 17:32:53 +02:00
ExternalCaster.cpp Remove explicit convesion to int in operators 2023-11-15 15:55:19 +02:00
ExternalCaster.h Remove explicit convesion to int in operators 2023-11-15 15:55:19 +02:00
ISpellMechanics.cpp Unified handling of battle sides ID's 2024-08-11 20:54:44 +00:00
ISpellMechanics.h Unified handling of battle sides ID's 2024-08-11 20:54:44 +00:00
ObstacleCasterProxy.cpp Remove excessive logging on using Recanter's Cloak in siege of Tower 2024-01-05 18:31:07 +02:00
ObstacleCasterProxy.h Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00
Problem.cpp Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
Problem.h Split CGeneralTextHandler file into 1 file per class form 2024-07-20 12:55:17 +00:00
ProxyCaster.cpp Remove explicit convesion to int in operators 2023-11-15 15:55:19 +02:00
ProxyCaster.h Remove explicit convesion to int in operators 2023-11-15 15:55:19 +02:00
TargetCondition.cpp Renamed JsonNode::meta to more logical modScope. Member is now private 2024-02-26 12:55:49 +02:00
TargetCondition.h TargetCondition: units with 100% MR is immune 2023-05-05 18:57:40 +03:00
ViewSpellInt.cpp Remove more subID access 2023-11-01 14:44:05 +02:00
ViewSpellInt.h Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00