1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +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
AbilityCaster.h
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
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
ExternalCaster.h
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
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
ProxyCaster.h
TargetCondition.cpp Renamed JsonNode::meta to more logical modScope. Member is now private 2024-02-26 12:55:49 +02:00
TargetCondition.h
ViewSpellInt.cpp
ViewSpellInt.h Fix: licenses, pragma guards, StdInc 2024-03-29 07:48:52 +02:00