コード例 #1
0
ファイル: Ship.cs プロジェクト: watset1/IN710watset1
        public void OnOutOfFuelEvent()
        {
            ShipEventArgs oe = new ShipEventArgs(shipLocation);

            if (outOfFuelEvent != null)
                outOfFuelEvent(this, oe);
        }
コード例 #2
0
ファイル: PetrolBot.cs プロジェクト: watset1/IN710watset1
 public void OutOfFuelEventHandlerMethod(object botShip, ShipEventArgs oe)
 {
     botCurrentLocation = oe.ShipLocation;
     drawBot();
 }
コード例 #3
0
ファイル: PetrolBot.cs プロジェクト: paddymoran/IN710morapd1
 public void FillShip(object o, ShipEventArgs args)
 {
     currentLocation = args.ShipLocation;
 }