示例#1
0
 //--------------------------------------------------------------
 // CONSTRUCTORS
 //--------------------------------------------------------------
 public Grid()
 {
     _map = new Block[Constants.GridSizeX, Constants.GridSizeY];
     _fallingPiece = new Piece (this, Constants.IdGeneratorPlayer1);
     _shadowPiece = new Piece (_fallingPiece);
     _nextPiece = new Piece(0, 0, Constants.IdGeneratorPlayer1);
     _nextPiece.MoveToZero();
     _isNextPieceModified = false;
     UpdateShadowPiece();
 }