diff options
author | Mattes D <github@xoft.cz> | 2014-08-26 14:16:33 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-26 14:16:33 +0200 |
commit | ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957 (patch) | |
tree | e0df88b6e84d1b9412e3639ba439a7c50f721480 /src/Generating/DungeonRoomsFinisher.h | |
parent | Type warning fixes. (diff) | |
download | cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.gz cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.bz2 cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.lz cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.xz cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.zst cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/DungeonRoomsFinisher.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/Generating/DungeonRoomsFinisher.h b/src/Generating/DungeonRoomsFinisher.h new file mode 100644 index 000000000..542a39682 --- /dev/null +++ b/src/Generating/DungeonRoomsFinisher.h @@ -0,0 +1,47 @@ + +// DungeonRoomsFinisher.h + +// Declares the cDungeonRoomsFinisher class representing the finisher that generates dungeon rooms + + + + + +#pragma once + +#include "GridStructGen.h" + + + + + +class cDungeonRoomsFinisher : + public cGridStructGen +{ + typedef cGridStructGen super; + +public: + /** Creates a new dungeon room finisher. + a_HeightGen is the underlying height generator, so that the rooms can always be placed under the terrain. + a_MaxSize and a_MinSize are the maximum and minimum sizes of the room's internal (air) area, in blocks across. */ + cDungeonRoomsFinisher(cTerrainHeightGen & a_HeightGen, int a_Seed, int a_GridSize, int a_MaxSize, int a_MinSize); + +protected: + + /** The height gen that is used for limiting the rooms' Y coords */ + cTerrainHeightGen & m_HeightGen; + + /** Maximum half-size (from center to wall) of the dungeon room's inner (air) area. Default is 3 (vanilla). */ + int m_MaxHalfSize; + + /** Minimum half-size (from center to wall) of the dungeon room's inner (air) area. Default is 2 (vanilla). */ + int m_MinHalfSize; + + + // cGridStructGen overrides: + virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override; +} ; + + + + |