1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/lib/bonuses
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
..
Bonus.cpp Merge pull request #4317 from IvanSavenko/split_townhandler 2024-07-22 17:42:48 +03:00
Bonus.h Removed save compatibility with 1.4 2024-08-29 18:51:53 +00:00
BonusCustomTypes.cpp Merged accurate shot bonus into death stare bonus 2024-01-13 15:55:07 +02:00
BonusCustomTypes.h Merged accurate shot bonus into death stare bonus 2024-01-13 15:55:07 +02:00
BonusEnum.cpp Reduce size of Bonus struct from 320 bytes to 296 bytes. 2024-07-22 14:59:31 +02:00
BonusEnum.h adjust texts 2024-09-19 20:57:43 +02:00
BonusList.cpp avoid one loop in BonusList::totalValue() 2024-09-04 23:10:54 +02:00
BonusList.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
BonusParams.cpp change MANA_PER_KNOWLEGDE to percentage 2024-03-23 20:28:49 +01:00
BonusParams.h Moved json files to new directory, split on per-class basis 2024-02-14 13:08:24 +02:00
BonusSelector.cpp Fix potential data race if two threads attempt to select bonuses with 2024-06-12 18:11:22 +00:00
BonusSelector.h Fix potential data race if two threads attempt to select bonuses with 2024-06-12 18:11:22 +00:00
CBonusProxy.cpp vcmi: split bonus to enumerator and HeroBonus.h 2023-05-03 18:01:06 +03:00
CBonusProxy.h vcmi: rename HeroBonus.h to Bonus.h 2023-05-02 11:20:58 +03:00
CBonusSystemNode.cpp miniscule bonus system cleanup 2024-09-18 16:41:41 +02:00
CBonusSystemNode.h miniscule bonus system cleanup 2024-09-18 16:41:41 +02:00
IBonusBearer.cpp remove never used code in CBonusSystemNode 2024-08-25 14:15:21 +02:00
IBonusBearer.h miniscule bonus system cleanup 2024-09-18 16:41:41 +02:00
Limiters.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
Limiters.h Merge branch 'vcmi/beta' into 'vcmi/develop' 2024-06-21 12:58:36 +00:00
Propagators.cpp vcmi: split CBonusSystemNode, BonusParams and prop 2023-05-02 00:54:53 +03:00
Propagators.h Added 'Serializeable' base class for classes serializeable by pointer 2024-05-16 18:40:59 +00:00
Updaters.cpp make TimesStackLevelUpdater support commander 2024-09-09 19:23:23 +08:00
Updaters.h Merge branch 'vcmi/master' into 'vcmi/develop' 2024-05-31 09:34:21 +00:00