public void OutOfFuelEventHandler(object sender, ShipEventArgs e) { // Set the refueler lcoation to be the same as the current ship location botCurrentLocation = botShip.ShipLocation; botShip.Refuel(); }
public void OutOfFuelEventHandler(object ship, ShipEventArgs shipArgs) { shipLocation = botShip.getShipLocation(); botCurrentLocation = shipLocation; botShip.Refuel(); }