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 void TryUnmarkPreviousHoveredShip() { if (HoveredShip != null) { if ((HoveredShip != ThisShip) && (HoveredShip != AnotherShip)) { HoveredShip.HighlightSelectedOff(); Roster.UnMarkShip(HoveredShip); HoveredShip = null; } } }
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); }
private static void DeselectShip(Ship.GenericShip ship) { ship.ToggleCollisionDetection(false); Roster.UnMarkShip(ship); ship.HighlightSelectedOff(); }