예제 #1
0
 /// <summary>
 /// Safely moves the player and the specified ship to the specified area
 /// </summary>
 /// <param name="destinationArea"></param>
 /// <param name="player"></param>
 public static void DebugWarp(IArea destinationArea, Player player, IShip playerShip)
 {
     ConsoleManager.WriteLine("Warping player " + player.Username + " to " + destinationArea.AreaName, ConsoleMessageType.Debug);
     destinationArea.MovePlayerHere(player, false);
     try
     {
         playerShip.GetPlayer().SetArea(destinationArea);
     }
     catch (Exception e)
     {
         Console.WriteLine("fase");
     }
     destinationArea.MoveShipHere(playerShip);
     playerShip.SetArea(destinationArea);
 }