예제 #1
0
 public static void ChangeActiveShip(string shipId)
 {
     DeselectThisShip();
     ThisShip = Roster.GetShipById(shipId);
     ThisShip.ToggleCollisionDetection(true);
     Roster.MarkShip(ThisShip, Color.green);
     ThisShip.HighlightThisSelected();
 }
예제 #2
0
 public static void ChangeActiveShip(string shipId)
 {
     DeselectThisShip();
     ThisShip = Roster.GetShipById(shipId);
     ThisShip.ToggleCollisionDetection(true);
     Roster.MarkShip(ThisShip, Color.green);
     ThisShip.HighlightThisSelected();
     if (Phases.CurrentSubPhase.GetType() == typeof(SubPhases.CombatSubPhase))
     {
         Roster.HighlightShipsFiltered(Roster.AnotherPlayer(Phases.CurrentPhasePlayer));
     }
 }
예제 #3
0
 private static void DeselectShip(Ship.GenericShip ship)
 {
     ship.ToggleCollisionDetection(false);
     Roster.UnMarkShip(ship);
     ship.HighlightSelectedOff();
 }
예제 #4
0
 private static void ChangeActiveShipUsingThisShip()
 {
     ThisShip.ToggleCollisionDetection(true);
     Roster.MarkShip(ThisShip, Color.green);
     ThisShip.HighlightThisSelected();
 }