2020-04-26 17:46:51 +00:00
|
|
|
#ifndef MWMECHANICS_TICKABLEEFFECTS_H
|
|
|
|
#define MWMECHANICS_TICKABLEEFFECTS_H
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class Ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
class CreatureStats;
|
|
|
|
struct EffectKey;
|
|
|
|
|
|
|
|
/// Apply a magic effect that is applied in tick intervals until its remaining time ends or it is removed
|
2020-11-02 13:51:36 +00:00
|
|
|
/// Note: this function works in loop, so magic effects should not be removed here to avoid iterator invalidation.
|
2020-04-26 17:46:51 +00:00
|
|
|
/// @return Was the effect a tickable effect with a magnitude?
|
|
|
|
bool effectTick(CreatureStats& creatureStats, const MWWorld::Ptr& actor, const EffectKey& effectKey, float magnitude);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|