예제 #1
0
 public void repairComponents(Ship ship)
 {
     ship.repairComponents();
 }
예제 #2
0
 public void repairHull(Ship ship)
 {
     ship.repairHull();
 }
예제 #3
0
 public void removeDroneShip(Ship ship, XElement drone)
 {
     ship.removeDrone(drone);
 }
예제 #4
0
 public void removeTrade(Ship ship, XElement trade)
 {
     ship.removeTrade(trade);
 }
예제 #5
0
 public void finishShip(Shipyard shipyard, Ship ship)
 {
     shipyard.finishShip(ship);
 }
예제 #6
0
 public void removeCargo(Ship ship, XElement cargo)
 {
     ship.removeCargo(cargo);
 }
예제 #7
0
 public void deleteShip(Ship ship)
 {
     if (ship.Data.Attribute("macro").Value == "unit_player_ship_macro")
     {
         if (this._playerShips.Contains(ship))
         {
             ship.Data.Parent.Remove();
             this._playerShips.Remove(ship);
         }
     }
     else
     {
         MessageBox.Show("You don't want to delete the skunk, will you? :)", "Warning", MessageBoxButton.OK);
     }
 }
예제 #8
0
        public void finishBuild(Ship ship)
        {
            ObservableCollection<XElement> wares = ship.ConstructionWares;

            foreach (XElement ware in wares)
            {
                ware.SetAttributeValue("amount","0");
            }
        }
예제 #9
0
 public void addGravidar(Ship ship)
 {
     ship.addGravidar();
 }
예제 #10
0
 public void addDroneShip(Ship ship)
 {
     ship.addDrone();
 }
예제 #11
0
 public void addCrewAttributeNode(string attribute, Ship ship, CMember crewMember)
 {
     if (_playerShips.Contains(ship))
     {
         ship.addCrewAttributeNode(attribute, crewMember);
     }
 }
예제 #12
0
 public void addCargo(Ship ship, string cargoType)
 {
     ship.addCargo(cargoType);
 }
예제 #13
0
        public void finishShip(Ship shipyardQueueShip)
        {
            if (this.ShipBuildQueue.Contains(shipyardQueueShip))
            {
                foreach (XElement ware in ConstructionWares)
                    ware.SetAttributeValue("amount", "0");

                MessageBox.Show("Required wares removed");
            }
        }