25 lines
604 B
C#
25 lines
604 B
C#
using Godot;
|
|
|
|
namespace GameJamDungeon;
|
|
|
|
public interface IEnemy : IKillable
|
|
{
|
|
public void TakeAction();
|
|
|
|
public void Move(Vector3 velocity);
|
|
|
|
public void TakeDamage(double damage, ElementType elementType = ElementType.None, bool isCriticalHit = false, bool ignoreDefense = false, bool ignoreElementalResistance = false);
|
|
|
|
public void Knockback(float impulse, Vector3 direction);
|
|
|
|
public double CurrentHP { get; }
|
|
|
|
public void StartAttackTimer();
|
|
|
|
public void StopAttackTimer();
|
|
|
|
public abstract void SetTarget(Vector3 target);
|
|
|
|
public void SetEnemyGlobalPosition(Vector3 target);
|
|
}
|