Пример #1
0
 /// <summary>
 /// Moves the unit to the given destination
 /// </summary>
 /// <param name="destination"></param>
 public void MoveTo(Case destination)
 {
     _location.RemoveUnit(this);
     destination.AddUnit(this);
     RemainingMovementPoints = Math.Max(0, RemainingMovementPoints - _location.DistanceTo(destination));
     _location = destination;
 }