예제 #1
0
        public void OnOutOfFuelEvent()
        {
            ShipEventArgs oe = new ShipEventArgs(shipLocation);

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