diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-29 21:47:51 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-29 21:47:51 +0100 |
commit | c76092e329f421c508d42b4013f4ee151304fea6 (patch) | |
tree | 1f8e73cc81fcaaccfd1b4b0a8ecf0b2039e7e70c /source/Generating/ChunkDesc.h | |
parent | Cuboid: Added DoesIntersect(), more IsInside() and more constructors (diff) | |
download | cuberite-c76092e329f421c508d42b4013f4ee151304fea6.tar cuberite-c76092e329f421c508d42b4013f4ee151304fea6.tar.gz cuberite-c76092e329f421c508d42b4013f4ee151304fea6.tar.bz2 cuberite-c76092e329f421c508d42b4013f4ee151304fea6.tar.lz cuberite-c76092e329f421c508d42b4013f4ee151304fea6.tar.xz cuberite-c76092e329f421c508d42b4013f4ee151304fea6.tar.zst cuberite-c76092e329f421c508d42b4013f4ee151304fea6.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Generating/ChunkDesc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/Generating/ChunkDesc.h b/source/Generating/ChunkDesc.h index 226d22429..d4b0c4d91 100644 --- a/source/Generating/ChunkDesc.h +++ b/source/Generating/ChunkDesc.h @@ -19,6 +19,9 @@ // fwd: ../BlockArea.h class cBlockArea; +// fwd: ../Cuboid.h +class cCuboid; + @@ -76,6 +79,12 @@ public: /// Returns the maximum height value in the heightmap HEIGHTTYPE GetMaxHeight(void) const; + /// Fills the relative cuboid with specified block; allows cuboid out of range of this chunk + void FillRelCuboid(const cCuboid & a_RelCuboid, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); + + /// Replaces the specified src blocks in the cuboid by the dst blocks; allows cuboid out of range of this chunk + void ReplaceRelCuboid(const cCuboid & a_RelCuboid, BLOCKTYPE a_SrcType, NIBBLETYPE a_SrcMeta, BLOCKTYPE a_DstType, NIBBLETYPE a_DstMeta); + // tolua_end |