private void OnClickMove(BlockController sender, Side side, BlockPoint newPoint) { if (_blocks[newPoint.X, newPoint.Y] == null && AllowClickMoved(sender)) { sender.Moved = true; sender.IsStarted = false; sender.AcceptMove(); CallMoveClick(); } }
private void OnBlockTryMove(BlockController sender, Side side, BlockPoint newPoint) { if (_blocks[newPoint.X, newPoint.Y] == null) { _blocks[sender.Position.X, sender.Position.Y] = null; _blocks[newPoint.X, newPoint.Y] = sender; sender.AcceptMove(); _moveCount++; } }
private void OnMove(BlockController sender, Side side, BlockPoint oldPoint) { _blockGameGenerator.IsMoved(sender); }