Beispiel #1
0
 private void OnPlayerMoved(IPosition oldPos, IPosition newPos)
 {
     PlayerMovedDelegate handler = PlayerMoved;
     if (handler != null)
         handler(this, new PlayerMovementEventArgs { OldPosition = oldPos, NewPosition = newPos });
     PlayersManager.Instance.OnPlayerMoved(this, oldPos, newPos);
 }
Beispiel #2
0
        public void OnPlayerMoved(IPlayer p, IPosition oldPos, IPosition newPos)
        {
            PlayerMovedDelegate handler = PlayerMoved;

            if (handler != null)
            {
                handler(p, new PlayerMovementEventArgs {
                    OldPosition = oldPos, NewPosition = newPos
                });
            }
        }