16 lines
433 B
C#
16 lines
433 B
C#
namespace DDD.Interfaces
|
|
{
|
|
public interface IDamageable
|
|
{
|
|
int MaxHealthPoint { get; }
|
|
int CurrentHealthPoint { get; }
|
|
bool IsInvincible { get; }
|
|
float InvincibilityDuration { get; }
|
|
|
|
void SetCurrentHealthPoint(int changedHealthPoint);
|
|
bool CanDamage();
|
|
void TakeDamage(int damageAmount);
|
|
void TryTakeDamage(int damageAmount);
|
|
void Die();
|
|
}
|
|
} |