Exemplo n.º 1
0
        public void OnOutOfFuelEvent(Point location)
        {
            ShipEvent se = new ShipEvent(location);

            if (outOfFuel != null)
            {
                outOfFuel(this, se);
            }
        }
Exemplo n.º 2
0
        public void OnFullOfFuelEvent(Point location)
        {
            ShipEvent se = new ShipEvent(location);

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

            if (outOfFuel != null)
            {
                outOfFuel(this, se);
            }
        }
Exemplo n.º 6
0
        public void OnFullOfFuelEvent(Point location)
        {
            ShipEvent se = new ShipEvent(location);

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