From 79fddd3be017b16f2d662441a92b26c2c6dc5b11 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 27 May 2012 14:17:47 +0000 Subject: Added a voronoi biome generator (#180) git-svn-id: http://mc-server.googlecode.com/svn/trunk@511 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/BioGen.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'source/BioGen.h') diff --git a/source/BioGen.h b/source/BioGen.h index 659470af2..691ab9d90 100644 --- a/source/BioGen.h +++ b/source/BioGen.h @@ -15,6 +15,7 @@ Interfaces to the various biome generators: #pragma once #include "cChunkGenerator.h" +#include "cNoise.h" @@ -100,3 +101,30 @@ protected: + +class cBioGenVoronoi : + public cBiomeGenList +{ +public: + cBioGenVoronoi(int a_Seed, int a_CellSize, const AString & a_Biomes) : + cBiomeGenList(a_Biomes), + m_CellSize(a_CellSize), + m_Noise(a_Seed) + { + } + +protected: + + int m_CellSize; + + cNoise m_Noise; + + // cBiomeGen override: + virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap) override; + + EMCSBiome VoronoiBiome(int a_BlockX, int a_BlockZ); +} ; + + + + -- cgit v1.2.3