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

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