An abstract class in Root.Township, Alta.Alchemy.
Base of the legacy effect classes (DurationEffect, EnvironmentalEffect). It only remembers the handler it was applied to; current effects use EffectDefinition instead.
Constructors
| Member | What it is |
|---|
protected Effect() | Creates an Effect with default values. |
Properties
| Member | What it is |
|---|
virtual float Cooldown { get; } | Cooldown in seconds; -1 (none) unless a subclass overrides it. |
EffectHandler Handler { get; private set; } | The EffectHandler this effect was last applied to. |
virtual bool IsDuration { get; } | False here; true for DurationEffect subclasses. |
Methods
| Member | What it is |
|---|
virtual void Apply(EffectHandler handler) | Stores the EffectHandler the effect was applied to. Subclasses add behaviour. |