Example #1
0
        public void OnOutOfFuelEvent(Point location)
        {
            ShipEvent se = new ShipEvent(location);

            if (outOfFuel != null)
            {
                outOfFuel(this, se);
            }
        }
Example #2
0
        public void OnFullOfFuelEvent(Point location)
        {
            ShipEvent se = new ShipEvent(location);

            if (fullOfFuel != null)
            {
                fullOfFuel(this, se);
            }
        }
Example #3
0
 public void OutOfFuelHandler(object subject, ShipEvent se)
 {
     botShip.ShipState = EShipState.Refueling;
     botLocation = botShip.ShipLocation;
 }
Example #4
0
 public void FullOfFuelHandler(object subject, ShipEvent se)
 {
     botShip.ShipState = EShipState.Wandering;
     botLocation = waitingLocation;
 }
Example #5
0
        public void OnOutOfFuelEvent(Point location)
        {
            ShipEvent se = new ShipEvent(location);

            if (outOfFuel != null)
            {
                outOfFuel(this, se);
            }
        }
Example #6
0
        public void OnFullOfFuelEvent(Point location)
        {
            ShipEvent se = new ShipEvent(location);

            if (fullOfFuel != null)
            {
                fullOfFuel(this, se);
            }
        }
Example #7
0
 public void FullOfFuelHandler(object subject, ShipEvent se)
 {
     botShip.ShipState = EShipState.Wandering;
     botLocation       = waitingLocation;
 }
Example #8
0
 public void OutOfFuelHandler(object subject, ShipEvent se)
 {
     botShip.ShipState = EShipState.Refueling;
     botLocation       = botShip.ShipLocation;
 }