Esempio n. 1
0
        protected void PerformManeuverOfShip(GenericShip ship)
        {
            ship.IsManeuverPerformed = true;
            GameCommand command = ShipMovementScript.GenerateActivateAndMoveCommand(Selection.ThisShip.ShipId);

            GameMode.CurrentGameMode.ExecuteCommand(command);
        }
Esempio n. 2
0
 public override void DoSelectThisShip(GenericShip ship, int mouseKeyIsPressed)
 {
     if (!ship.IsManeuverPerformed)
     {
         GameCommand command = ShipMovementScript.GenerateActivateAndMoveCommand(Selection.ThisShip.ShipId);
         GameMode.CurrentGameMode.ExecuteCommand(command);
     }
     else
     {
         Messages.ShowErrorToHuman("This ship has already executed his maneuver");
     };
 }