From eddc360bd7f82aa8e45d1ff2c9de5a3767dea782 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 15 Jul 2012 13:33:43 +0000 Subject: Basic jungle trees with vines, efficient trees handling. git-svn-id: http://mc-server.googlecode.com/svn/trunk@665 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/StructGen.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'source/StructGen.h') diff --git a/source/StructGen.h b/source/StructGen.h index 8b799d013..c422069b1 100644 --- a/source/StructGen.h +++ b/source/StructGen.h @@ -40,15 +40,29 @@ protected: cTerrainHeightGen * m_HeightGen; cTerrainCompositionGen * m_CompositionGen; + /** Generates and applies an image of a single tree. + Parts of the tree inside the chunk are applied to a_BlockX. + Parts of the tree outside the chunk are stored in a_OutsideX + */ void GenerateSingleTree( int a_ChunkX, int a_ChunkZ, int a_Seq, cChunkDef::BlockTypes & a_BlockTypes, cChunkDef::BlockNibbles & a_BlockMetas, const cChunkDef::HeightMap & a_Height, const cChunkDef::BiomeMap & a_Biomes, - sSetBlockVector & a_Blocks + sSetBlockVector & a_OutsideLogs, + sSetBlockVector & a_OutsideOther ) ; + /// Applies an image into chunk blockdata; all blocks outside the chunk will be appended to a_Overflow + void cStructGenTrees::ApplyTreeImage( + int a_ChunkX, int a_ChunkZ, + cChunkDef::BlockTypes & a_BlockTypes, + cChunkDef::BlockNibbles & a_BlockMetas, + const sSetBlockVector & a_Image, + sSetBlockVector & a_Overflow + ); + int GetNumTrees( int a_ChunkX, int a_ChunkZ, const cChunkDef::BiomeMap & a_Biomes -- cgit v1.2.3