public void OnOutOfFuelEvent() { ShipEventArgs oe = new ShipEventArgs(shipLocation); if (outOfFuelEvent != null) outOfFuelEvent(this, oe); }
public void OutOfFuelEventHandlerMethod(object botShip, ShipEventArgs oe) { botCurrentLocation = oe.ShipLocation; drawBot(); }
public void FillShip(object o, ShipEventArgs args) { currentLocation = args.ShipLocation; }