//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); }
//Cache References public BoardState(Board _board, BoardStateController _controller) { board = _board; stateController = _controller; boardConfig = board.boardConfig; }
public InitBoardState(Board _board, BoardStateController _controller) : base(_board, _controller) { }
public LockingBoardState(Board _board, BoardStateController _controller) : base(_board, _controller) { }
public GameOverBoardState(Board _board, BoardStateController _controller) : base(_board, _controller) { }
public LineCompletionBoardState(Board _board, BoardStateController _controller) : base(_board, _controller) { linesCompleted = 0; }