private void OnGoodSpaceShipLocationChanged()
 {
     if (GoodSpaceShipLocationChanged != null)
     {
         GoodSpaceShipLocationChanged.Invoke(this, new LocationEventArgs {
             x = _shipXLocation, y = _shipYLocation
         });
     }
 }
 private void OnGoodSpaceShipLocationChanged(int shipXLocation, int shipYLocation)
 {
     if (GoodSpaceShipLocationChanged != null)
     {
         GoodSpaceShipLocationChanged.Invoke(this, new LocationEventArgs {
             X = shipXLocation, Y = shipYLocation
         });
     }
 }
示例#3
0
 public void MoveSpaceShip(int newX, int newY)
 {
     if (GoodSpaceShipLocationChanged != null)
     {
         GoodSpaceShipLocationChanged.Invoke(this,
                                             new LocationEventArgs()
         {
             X = newX, Y = newY
         });
     }
 }
示例#4
0
 public void OnGoodSpaceShipLocationChanged()
 {
     if (GoodSpaceShipLocationChanged != null)
     {
         GoodSpaceShipLocationChanged.Invoke(this,
                                             new LocationEventArgs()
         {
             X = _shipXLocation, Y = _shipYLocation
         });
     }
 }
 private void OnGoodShipLocationChanged()
 {
     if (GoodSpaceShipLocationChanged != null)
     {
         //LocationEventArgs location = new LocationEventArgs();
         //location.X = _shipXLocation;
         //location.Y = _shipYLocation;
         GoodSpaceShipLocationChanged.Invoke(this, new LocationEventArgs {
             X = _shipXLocation, Y = _shipYLocation
         });
     }
 }
 private void OnGoodSpaceShipLocationChanged()
 {
     GoodSpaceShipLocationChanged?.Invoke(this, new LocationEventArgs {
         X = _shipXLocation, Y = _shipYLocation
     });
 }