public void Tick() { MovableGrid test = fallingBlock.MoveDown(); if (ConflictWithBoard(test)) { StopFallingBlock(); } else { fallingBlock = test; } }
public void MoveDown() { MovableGrid test = movingGrid.MoveDown(); refreshTab(movingGrid, null); if (!ConflictsWithBoard(test)) { refreshTab(null, test); movingGrid = test; } else { StopFallingBlock(); refreshTab(null, movingGrid); } }
public void MoveDown() { if (!IsFallingBlock()) { return; } MovableGrid test = fallingBlock.MoveDown(); if (ConflictsWithBoard(test)) { StopFallingBlock(); RemoveFullRows(); } else { fallingBlock = test; } }
public void MoveDown() { if (!IsFallingBlock()) { return; } MovableGrid test = fallingBlock.MoveDown(); if (OutsideBoard(test) || HitAnotherBlock(test)) { StopFallingBlock(); checkFullRows(); } else { fallingBlock = test; } }