Ejemplo n.º 1
0
        public void OnOutOfFuelEvent()
        {
            ShipEventArgs oe = new ShipEventArgs(shipLocation);

            if (outOfFuelEvent != null)
                outOfFuelEvent(this, oe);
        }
Ejemplo n.º 2
0
 public void OutOfFuelEventHandlerMethod(object botShip, ShipEventArgs oe)
 {
     botCurrentLocation = oe.ShipLocation;
     drawBot();
 }
Ejemplo n.º 3
0
 public void FillShip(object o, ShipEventArgs args)
 {
     currentLocation = args.ShipLocation;
 }