コード例 #1
0
ファイル: Selection.cs プロジェクト: jychuah/FlyCasual
 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();
 }
コード例 #2
0
ファイル: Selection.cs プロジェクト: keldren/FlyCasual
 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);
 }