private bool checkWaiting() { bool justMoved = false; WaitingState wState = bState as WaitingState; if (wState != null && !movingFromWait) { if (blockQueue.Items.Count == 0) { pause(); } else { justMoved = true; movingFromWait = true; bState.nextState(this); } } return(justMoved); }
public override void nextState(ArchiTetris e) { WaitingState newState = new WaitingState(e); e.bState = newState; }