Exemplo n.º 1
0
 public void repairComponents(Ship ship)
 {
     ship.repairComponents();
 }
Exemplo n.º 2
0
 public void repairHull(Ship ship)
 {
     ship.repairHull();
 }
Exemplo n.º 3
0
 public void removeDroneShip(Ship ship, XElement drone)
 {
     ship.removeDrone(drone);
 }
Exemplo n.º 4
0
 public void removeTrade(Ship ship, XElement trade)
 {
     ship.removeTrade(trade);
 }
Exemplo n.º 5
0
 public void finishShip(Shipyard shipyard, Ship ship)
 {
     shipyard.finishShip(ship);
 }
Exemplo n.º 6
0
 public void removeCargo(Ship ship, XElement cargo)
 {
     ship.removeCargo(cargo);
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 8
0
        public void finishBuild(Ship ship)
        {
            ObservableCollection<XElement> wares = ship.ConstructionWares;

            foreach (XElement ware in wares)
            {
                ware.SetAttributeValue("amount","0");
            }
        }
Exemplo n.º 9
0
 public void addGravidar(Ship ship)
 {
     ship.addGravidar();
 }
Exemplo n.º 10
0
 public void addDroneShip(Ship ship)
 {
     ship.addDrone();
 }
Exemplo n.º 11
0
 public void addCrewAttributeNode(string attribute, Ship ship, CMember crewMember)
 {
     if (_playerShips.Contains(ship))
     {
         ship.addCrewAttributeNode(attribute, crewMember);
     }
 }
Exemplo n.º 12
0
 public void addCargo(Ship ship, string cargoType)
 {
     ship.addCargo(cargoType);
 }
Exemplo n.º 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");
            }
        }