1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/include/vcmi
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
..
events Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
scripting wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00
spells cast only on self 2024-09-28 17:32:53 +02:00
Artifact.h Finalization of refactoring: 2023-01-20 15:18:36 +02:00
ArtifactService.h wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00
Creature.h Renamed speed -> getMovementRange, remove misleading default parameter 2024-01-14 17:14:36 +02:00
CreatureService.h wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00
Entity.h Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
EntityService.h wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00
Environment.h Separated game and battle callback (server & client only) 2023-09-06 16:03:39 +03:00
Faction.h Converted remaining identifier to new system 2023-08-25 13:38:02 +03:00
FactionMember.h (lib) Bonus subtype is now stored as metaidentifier that can store any 2023-10-22 16:54:43 +03:00
FactionService.h wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00
HeroClass.h Finalization of refactoring: 2023-01-20 15:18:36 +02:00
HeroClassService.h wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00
HeroType.h Finalization of refactoring: 2023-01-20 15:18:36 +02:00
HeroTypeService.h wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00
Metatype.h wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00
Player.h vcmi: PlayerState is now an Entity 2023-04-05 01:22:04 +03:00
ServerCallback.h Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
Services.h Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
Skill.h VcmiLua builds properly now 2023-02-01 20:25:09 +01:00
SkillService.h VcmiLua builds properly now 2023-02-01 20:25:09 +01:00
Team.h Entities redesign and a few ERM features 2021-02-14 19:05:43 +03:00