Method | Description | |
---|---|---|
AddChunk ( ChunkLibrary3D chunkLibrary, Level3D level, |
Expands the passed level at any free context.
|
|
AddChunk ( ChunkLibrary3D chunkLibrary, Level3D level, |
Expands the passed level at the specified free context.
|
|
AddRandomChunk ( ChunkLibrary3D chunkLibrary, Level3D level, |
Adds a random chunk to the passed level at a random position, without checking for any intersections with the level bounds or other chunks and without aligning it to any other chunk.
|
|
GenerateLevel ( ChunkLibrary3D chunkLibrary, Vector3F levelExtents ) : Level3D |
Generates a 3D level with the given chunk library and desired dimensions for the level.
|
|
GenerateLevel ( ChunkLibrary3D chunkLibrary, Vector3F levelExtents, |
Generates a 3D level with the given chunk library, desired dimensions for the level and random number generator.
|
|
GenerateLevel ( ChunkLibrary3D chunkLibrary, Level3D level ) : void |
Generates a 3D level with the given chunk library and level.
|
|
GenerateLevel ( ChunkLibrary3D chunkLibrary, Level3D level, |
Generates a 3D level with the given chunk library, level and random number generator.
|
|
PostProcessLevel ( Level3D level ) : void |
Applies all available post-processing policies to the passed level.
|
Method | Description | |
---|---|---|
ConstructChunkFromTemplate ( |
Factory method that returns a new chunk based on the given chunk template that the type of the chunk template and of the chunks in the level.
|
public AddChunk ( ChunkLibrary3D chunkLibrary, Level3D level, |
||
chunkLibrary | ChunkLibrary3D | /// Chunk library that holds all chunk templates to use for the level generation. /// |
level | Level3D | Level to fill during the level generation process. |
random | Random number generator to use for the level generation. | |
return | bool |
public AddChunk ( ChunkLibrary3D chunkLibrary, Level3D level, |
||
chunkLibrary | ChunkLibrary3D | /// Chunk library that holds all chunk templates to use for the level generation. /// |
level | Level3D | Level to fill during the level generation process. |
random | Random number generator to use for the level generation. | |
freeContext | Context to expland the level at. | |
return | bool |
public AddRandomChunk ( ChunkLibrary3D chunkLibrary, Level3D level, |
||
chunkLibrary | ChunkLibrary3D | /// Chunk library that holds all chunk templates to use for the level generation. /// |
level | Level3D | Level to fill during the level generation process. |
random | Random number generator to use for the level generation. | |
return | void |
protected ConstructChunkFromTemplate ( |
||
chunkTemplate | Chunk template the returned chunk should be based on. | |
return |
public GenerateLevel ( ChunkLibrary3D chunkLibrary, Vector3F levelExtents ) : Level3D | ||
chunkLibrary | ChunkLibrary3D | /// Chunk library that holds all chunk templates to use for the level generation. /// |
levelExtents | Vector3F | Width, height and depth the resulting level should have. |
return | Level3D |
public GenerateLevel ( ChunkLibrary3D chunkLibrary, Vector3F levelExtents, |
||
chunkLibrary | ChunkLibrary3D | /// Chunk library that holds all chunk templates to use for the level generation. /// |
levelExtents | Vector3F | Width, height and depth the resulting level should have. |
random | Random number generator to use for the level generation. | |
return | Level3D |
public GenerateLevel ( ChunkLibrary3D chunkLibrary, Level3D level ) : void | ||
chunkLibrary | ChunkLibrary3D | /// Chunk library that holds all chunk templates to use for the level generation. /// |
level | Level3D | Level to fill during the level generation process. |
return | void |
public GenerateLevel ( ChunkLibrary3D chunkLibrary, Level3D level, |
||
chunkLibrary | ChunkLibrary3D | /// Chunk library that holds all chunk templates to use for the level generation. /// |
level | Level3D | Level to fill during the level generation process. |
random | Random number generator to use for the level generation. | |
return | void |
public PostProcessLevel ( Level3D level ) : void | ||
level | Level3D | Level to process. |
return | void |