31 lines
539 B
C#
31 lines
539 B
C#
namespace GameDev.CoreSystems
|
|
{
|
|
public interface IDamageable
|
|
{
|
|
#region Methods
|
|
|
|
public void ModifyHealth(int healthChange);
|
|
|
|
#endregion
|
|
|
|
#region Setters
|
|
|
|
public void SetCurrentHealth(int newHealth);
|
|
|
|
public void SetMaxHealth(int newHealth);
|
|
|
|
public void SetInvulnerable(bool newState);
|
|
|
|
#endregion
|
|
|
|
#region Getters
|
|
|
|
public int GetCurrentHealth();
|
|
|
|
public int GetMaxHealth();
|
|
|
|
public float GetHealthFactor();
|
|
|
|
#endregion
|
|
}
|
|
} |