Example #1
0
 public static void ChangeAnotherShip(string shipId)
 {
     if (AnotherShip != null)
     {
         Roster.UnMarkShip(AnotherShip);
         AnotherShip.HighlightSelectedOff();
     }
     AnotherShip = Roster.GetShipById(shipId);
     Roster.MarkShip(AnotherShip, Color.red);
     AnotherShip.HighlightEnemySelected();
 }
Example #2
0
 private static void TryUnmarkPreviousHoveredShip()
 {
     if (HoveredShip != null)
     {
         if ((HoveredShip != ThisShip) && (HoveredShip != AnotherShip))
         {
             HoveredShip.HighlightSelectedOff();
             Roster.UnMarkShip(HoveredShip);
             HoveredShip = null;
         }
     }
 }
Example #3
0
 private static bool ChangeAnotherShip(string shipId)
 {
     //Should I can target my own ships???
     if (AnotherShip != null)
     {
         Roster.UnMarkShip(AnotherShip);
         AnotherShip.HighlightSelectedOff();
     }
     AnotherShip = Roster.GetShipById(shipId);
     Roster.MarkShip(AnotherShip, Color.red);
     AnotherShip.HighlightEnemySelected();
     if (Roster.GetPlayer(Phases.CurrentPhasePlayer).GetType() == typeof(Players.HumanPlayer))
     {
         Game.UI.CallContextMenu(AnotherShip);
     }
     return(true);
 }
Example #4
0
 private static void DeselectShip(Ship.GenericShip ship)
 {
     ship.ToggleCollisionDetection(false);
     Roster.UnMarkShip(ship);
     ship.HighlightSelectedOff();
 }