Пример #1
0
 public void MoveToTarget(Path target)
 {
     Moves.AddRange(target.GetXMoves);
     Moves.AddRange(target.GetYMoves);
     TargetReach++;
     _ttl -= target.Distance;
     Position = target.Destination;
 }
Пример #2
0
 public bool CanMoveTo(Path target)
 {
     return _ttl >= target.Distance;
 }