1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/lib/spells/effects
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
..
Catapult.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Catapult.h
Clone.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Clone.h
Damage.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Damage.h
DemonSummon.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
DemonSummon.h Block spellcasting if 0 creatures will be raised 2024-04-07 18:50:37 +03:00
Dispel.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Dispel.h
Effect.cpp
Effect.h
Effects.cpp
Effects.h
EffectsFwd.h
Heal.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Heal.h
LocationEffect.cpp
LocationEffect.h
Moat.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
Moat.h Implemented 'strict' json support 2024-02-26 12:55:49 +02:00
Obstacle.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Obstacle.h Unified handling of battle sides ID's 2024-08-11 20:54:44 +00:00
Registry.cpp
Registry.h
RemoveObstacle.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
RemoveObstacle.h
Sacrifice.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Sacrifice.h
Summon.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
Summon.h Block spellcasting if 0 creatures will be raised 2024-04-07 18:50:37 +03:00
Teleport.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Teleport.h
Timed.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Timed.h
UnitEffect.cpp Fix chain lightning wasting effect on creatures immune to magic 2024-09-28 17:22:26 +02:00
UnitEffect.h