| 31 | |
| 32 | |
| 33 | cNetherFort(cNetherFortGen & a_ParentGen, int a_BlockX, int a_BlockZ, int a_GridSize, int a_MaxDepth, int a_Seed) : |
| 34 | m_ParentGen(a_ParentGen), |
| 35 | m_BlockX(a_BlockX), |
| 36 | m_BlockZ(a_BlockZ), |
| 37 | m_GridSize(a_GridSize), |
| 38 | m_Seed(a_Seed) |
| 39 | { |
| 40 | // TODO: Proper Y-coord placement |
| 41 | int BlockY = 64; |
| 42 | |
| 43 | // Generate pieces: |
| 44 | for (int i = 0; m_Pieces.size() < (size_t)(a_MaxDepth * a_MaxDepth / 8 + a_MaxDepth); i++) |
| 45 | { |
| 46 | cBFSPieceGenerator pg(m_ParentGen, a_Seed + i); |
| 47 | pg.PlacePieces(a_BlockX, BlockY, a_BlockZ, a_MaxDepth, m_Pieces); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | |
| 52 | ~cNetherFort() |
nothing calls this directly
no test coverage detected