CapersProject/Assets/02.Scripts/BlueWater/Interface/IDamagable.cs

16 lines
433 B
C#
Raw Normal View History

2025-02-10 02:13:46 +00:00
namespace DDD.Interfaces
2024-06-03 18:26:03 +00:00
{
public interface IDamageable
{
int MaxHealthPoint { get; }
int CurrentHealthPoint { get; }
bool IsInvincible { get; }
float InvincibilityDuration { get; }
2024-06-03 18:26:03 +00:00
void SetCurrentHealthPoint(int changedHealthPoint);
bool CanDamage();
void TakeDamage(int damageAmount);
void TryTakeDamage(int damageAmount);
2024-06-03 18:26:03 +00:00
void Die();
}
}