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