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); } }
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); }