Cuberite
A lightweight, fast and extensible game server for Minecraft
Ravines.h
Go to the documentation of this file.
1 
2 // Ravines.h
3 
4 // Interfaces to the cStructGenRavines class representing the ravine structure generator
5 
6 
7 
8 
9 
10 #pragma once
11 
12 #include "GridStructGen.h"
13 
14 
15 
16 
17 
19  public cGridStructGen
20 {
22 
23 public:
24 
25  cStructGenRavines(int a_Seed, int a_Size);
26 
27 protected:
28  class cRavine; // fwd: Ravines.cpp
29 
30  int m_Size; // Max size, in blocks, of the ravines generated
31 
32 
33  // cGridStructGen overrides:
34  virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override;
35 } ;
36 
37 
38 
Generates structures in a semi-random grid.
Definition: GridStructGen.h:46
std::shared_ptr< cStructure > cStructurePtr
Definition: GridStructGen.h:77
cGridStructGen(int a_Seed, int a_GridSizeX, int a_GridSizeZ, int a_MaxOffsetX, int a_MaxOffsetZ, int a_MaxStructureSizeX, int a_MaxStructureSizeZ, size_t a_MaxCacheSize)
virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override
Create a new structure at the specified gridpoint.
Definition: Ravines.cpp:93
cStructGenRavines(int a_Seed, int a_Size)
Definition: Ravines.cpp:83