public void repairComponents(Ship ship) { ship.repairComponents(); }
public void repairHull(Ship ship) { ship.repairHull(); }
public void removeDroneShip(Ship ship, XElement drone) { ship.removeDrone(drone); }
public void removeTrade(Ship ship, XElement trade) { ship.removeTrade(trade); }
public void finishShip(Shipyard shipyard, Ship ship) { shipyard.finishShip(ship); }
public void removeCargo(Ship ship, XElement cargo) { ship.removeCargo(cargo); }
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); } }
public void finishBuild(Ship ship) { ObservableCollection<XElement> wares = ship.ConstructionWares; foreach (XElement ware in wares) { ware.SetAttributeValue("amount","0"); } }
public void addGravidar(Ship ship) { ship.addGravidar(); }
public void addDroneShip(Ship ship) { ship.addDrone(); }
public void addCrewAttributeNode(string attribute, Ship ship, CMember crewMember) { if (_playerShips.Contains(ship)) { ship.addCrewAttributeNode(attribute, crewMember); } }
public void addCargo(Ship ship, string cargoType) { ship.addCargo(cargoType); }
public void finishShip(Ship shipyardQueueShip) { if (this.ShipBuildQueue.Contains(shipyardQueueShip)) { foreach (XElement ware in ConstructionWares) ware.SetAttributeValue("amount", "0"); MessageBox.Show("Required wares removed"); } }