//On Create
        public AutoFallBoardState(Board _board, BoardStateController _controller, TetrominoManager _tMan) : base(_board, _controller)
        {
            //Cache tetromino manager reference
            tetrominoManager = _tMan;

            //Set fall timers
            fallTime       = boardConfig.fallTime;
            fallMultiplier = boardConfig.fallMultiplier;
            fallPieces     = boardConfig.fallPieces;
            lockedPieces   = 0;

            //Set proper rotation method
            SetRotation();

            boardRenderer = new BoardRenderer(_board, _tMan);
        }
예제 #2
0
 //Cache References
 public BoardState(Board _board, BoardStateController _controller)
 {
     board           = _board;
     stateController = _controller;
     boardConfig     = board.boardConfig;
 }
예제 #3
0
 public InitBoardState(Board _board, BoardStateController _controller) : base(_board, _controller)
 {
 }
예제 #4
0
 public LockingBoardState(Board _board, BoardStateController _controller) : base(_board, _controller)
 {
 }
예제 #5
0
 public GameOverBoardState(Board _board, BoardStateController _controller) : base(_board, _controller)
 {
 }
 public LineCompletionBoardState(Board _board, BoardStateController _controller) : base(_board, _controller)
 {
     linesCompleted = 0;
 }