Example #1
0
        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);
        }
Example #2
0
        public override void nextState(ArchiTetris e)
        {
            WaitingState newState = new WaitingState(e);

            e.bState = newState;
        }