1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/lib/rewardable
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
..
Configuration.cpp Add coastVisitable property to rewardables, update schemas 2024-09-12 12:11:18 +00:00
Configuration.h Removed creatureBank flag from battle, battles now receive BattleLayout 2024-09-12 12:11:18 +00:00
Info.cpp Minor refactoring of translations: 2024-10-06 19:42:15 +00:00
Info.h - Handle new configurable banks 2024-09-21 13:36:28 +02:00
Interface.cpp Unify rewardable map object and town building code 2024-09-27 15:41:24 +00:00
Interface.h Unify rewardable map object and town building code 2024-09-27 15:41:24 +00:00
Limiter.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
Limiter.h Added 'Serializeable' base class for classes serializeable by pointer 2024-05-16 18:40:59 +00:00
Reward.cpp Show non-learnable spells from rewardable object as greyed-out 2024-07-29 17:13:31 +00:00
Reward.h Rewardable objects may now define guards. Converted Crypt to rewardable. 2024-09-12 12:10:40 +00:00