} // end method CheckToRaiseLevel #endregion #region "Go To Next Shape" Methods /// <summary> /// This method will add a shape to the pile /// </summary> private void CheckToAddShapeToPile() { if (currentShape != null) { if (!ShapeCanMoveDown()) { //if (HasLines()) skipLockDelay = true; if (!skipLockDelay && !lockDelay.Active) { lockDelay.Start(); } if (skipLockDelay || lockDelay.Expired()) { gridPile.AddShapeToPile(currentShape); Score += 17; currentShape = null; if (skipLockDelay) { skipLockDelay = false; } if (lockDelay.Expired()) { lockDelay.Reset(); } } } } } // end method CheckToAddShapeToPile
/// <summary> /// This method checks to see if the block is done flashing. /// </summary> /// <returns>A boolean indicating whether the block is done flashing.</returns> public bool DoneFlashing() { return(BlockFlashing.Expired()); }