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

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

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

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

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