Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Types | List of all members
cBioGenMulticache Class Reference

#include <BioGen.h>

Inheritance diagram for cBioGenMulticache:
Inheritance graph
[legend]
Collaboration diagram for cBioGenMulticache:
Collaboration graph
[legend]

Public Member Functions

 cBioGenMulticache (cBiomeGenPtr a_BioGenToCache, size_t a_SubCacheSize, size_t a_NumSubCaches)
 
- Public Member Functions inherited from cBiomeGen
virtual ~cBiomeGen ()
 

Protected Types

typedef std::vector< cBiomeGenPtrcBiomeGenPtrs
 

Protected Member Functions

virtual void GenBiomes (cChunkCoords a_ChunkCoords, cChunkDef::BiomeMap &a_BiomeMap) override
 Generates biomes for the given chunk. More...
 
virtual void InitializeBiomeGen (cIniFile &a_IniFile) override
 Reads parameters from the ini file, prepares generator for use. More...
 

Protected Attributes

cBiomeGenPtrs m_Caches
 Individual sub-caches. More...
 
size_t m_NumSubCaches
 Number of sub-caches. More...
 

Private Types

typedef cBiomeGen super
 

Additional Inherited Members

- Static Public Member Functions inherited from cBiomeGen
static cBiomeGenPtr CreateBiomeGen (cIniFile &a_IniFile, int a_Seed, bool &a_CacheOffByDefault)
 Creates the correct BiomeGen descendant based on the ini file settings. More...
 

Detailed Description

Definition at line 90 of file BioGen.h.

Member Typedef Documentation

typedef std::vector<cBiomeGenPtr> cBioGenMulticache::cBiomeGenPtrs
protected

Definition at line 104 of file BioGen.h.

Definition at line 94 of file BioGen.h.

Constructor & Destructor Documentation

cBioGenMulticache::cBioGenMulticache ( cBiomeGenPtr  a_BioGenToCache,
size_t  a_SubCacheSize,
size_t  a_NumSubCaches 
)

Definition at line 142 of file BioGen.cpp.

Member Function Documentation

void cBioGenMulticache::GenBiomes ( cChunkCoords  a_ChunkCoords,
cChunkDef::BiomeMap a_BiomeMap 
)
overrideprotectedvirtual

Generates biomes for the given chunk.

Implements cBiomeGen.

Definition at line 156 of file BioGen.cpp.

void cBioGenMulticache::InitializeBiomeGen ( cIniFile a_IniFile)
overrideprotectedvirtual

Reads parameters from the ini file, prepares generator for use.

Reimplemented from cBiomeGen.

Definition at line 168 of file BioGen.cpp.

Member Data Documentation

cBiomeGenPtrs cBioGenMulticache::m_Caches
protected

Individual sub-caches.

Definition at line 111 of file BioGen.h.

size_t cBioGenMulticache::m_NumSubCaches
protected

Number of sub-caches.

Pulled out of m_Caches.size() for faster access.

Definition at line 108 of file BioGen.h.


The documentation for this class was generated from the following files: