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 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);
 }