Esempio n. 1
0
        private void UpdateStateForValidMove(Slot destination, IMessageLog log = null)
        {
            if (Position != null)
            {
                Position.Player = null;
            }

            Position           = destination;
            destination.Player = this;

            if (log != null)
            {
                log.MovePlayer(this, destination);
            }
        }
Esempio n. 2
0
        private void UpdateStateForValidMove(Slot destination, IMessageLog log = null)
        {
            if (Position != null)
                Position.Player = null;

            Position = destination;
            destination.Player = this;

            if(log != null)
                log.MovePlayer(this, destination);
        }