Extracted an EffectManager unit from Living

This commit is contained in:
Dylan K. Taylor
2019-07-05 16:15:58 +01:00
parent fe850a184c
commit f356bf0893
10 changed files with 260 additions and 195 deletions

View File

@ -154,6 +154,17 @@ This version features substantial changes to the network system, improving coher
- `Entity->entityBaseTick()` is now `protected`.
- `Entity->move()` is now `protected`.
- `Living->knockBack()` now accepts `float, float, float` (the first two parameters have been removed).
- `Living->getEffects()` now returns `EffectManager` instead of `Effect[]`.
- The following classes have been added:
- `effect\EffectManager`: contains effect-management functionality extracted from `Living`
- The following API methods have been moved / renamed:
- `Living->removeAllEffects()` -> `EffectManager->clear()`
- `Living->removeEffect()` -> `EffectManager->remove()`
- `Living->addEffect()` -> `EffectManager->add()`
- `Living->getEffect()` -> `EffectManager->get()`
- `Living->hasEffect()` -> `EffectManager->has()`
- `Living->hasEffects()` -> `EffectManager->hasEffects()`
- `Living->getEffects()` -> `EffectManager->all()`
- The following classes have been removed:
- `Creature`
- `Damageable`