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