summaryrefslogblamecommitdiffstats
path: root/source/cWorldGenerator.h
blob: 208178d4a972cb7574155160c148a9aec17d8dc8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 

             










                             


                      
                                           

                            
                                                                              


           


                          








                                                           
 

#pragma once





#include "cChunk.h"
#include "MersenneTwister.h"





class cWorldGenerator
{
public:
	cWorldGenerator(cWorld * a_World);
	~cWorldGenerator();

	virtual void GenerateChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ);

protected:

	cWorld * m_World;
	
	// Thread-unsafe:
	MTRand r1;

	virtual void GenerateTerrain( cChunkPtr a_Chunk );
	virtual void GenerateFoliage( cChunkPtr a_Chunk );

};