22 #include "object/interface/damageable_object.h"
28 enum class DestructionType
74 virtual void SetDying(DeathType deathType) = 0;
virtual bool IsDying()=0
Is object currently dying?
virtual void SetDying(DeathType deathType)=0
Set the status that means the object is currently dying.
virtual float GetLightningHitProbability()=0
Returns the distance modifier for CLightning, used to modify hit probability. Value in range [0...
objects that can be destroyed (base for Shielded and Fragile)
virtual DeathType GetDying()=0
Return object death type.
Interface for objects that can be destroyed.
Definition: destroyable_object.h:55
virtual void DestroyObject(DestructionType type)=0
Destroy the object immediately. Use this only if you are 100% sure this is what you want...
Interface for objects that generate particles when hit.
Definition: damageable_object.h:47