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; }
|
2024-06-16 21:29:06 +00:00
|
|
|
bool IsInvincible { get; }
|
|
|
|
float InvincibilityDuration { get; }
|
|
|
|
|
2024-06-03 18:26:03 +00:00
|
|
|
void SetCurrentHealthPoint(int changedHealthPoint);
|
|
|
|
bool CanDamage();
|
|
|
|
void TakeDamage(int damageAmount);
|
2024-06-14 09:11:35 +00:00
|
|
|
void TryTakeDamage(int damageAmount);
|
2024-06-03 18:26:03 +00:00
|
|
|
void Die();
|
|
|
|
}
|
|
|
|
}
|