private bool IsNearby(Healthed enemy) { return(Math.Abs(enemy.X - X) <= 1 && Math.Abs(enemy.Y - Y) <= 1); }
public Attack(int value, Healthed attackedCharacter) { Value = value; AttackedCharacter = attackedCharacter; }
private bool CanAttack(Healthed enemy) { return(Math.Abs(enemy.X - X) <= 3 && Math.Abs(enemy.Y - Y) <= 3); }