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

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

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

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

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