Cuberite
A lightweight, fast and extensible game server for Minecraft
RoughRavines.h
Go to the documentation of this file.
1 
2 // RoughRavines.h
3 
4 // Declares the cRoughRavines class representing the rough ravine generator
5 
6 
7 
8 
9 #pragma once
10 
11 #include "GridStructGen.h"
12 
13 
14 
15 
16 
18  public cGridStructGen
19 {
21 
22 public:
23 
25  int a_Seed,
26  int a_MaxSize, int a_MinSize,
27  float a_MaxCenterWidth, float a_MinCenterWidth,
28  float a_MaxRoughness, float a_MinRoughness,
29  float a_MaxFloorHeightEdge, float a_MinFloorHeightEdge,
30  float a_MaxFloorHeightCenter, float a_MinFloorHeightCenter,
31  float a_MaxCeilingHeightEdge, float a_MinCeilingHeightEdge,
32  float a_MaxCeilingHeightCenter, float a_MinCeilingHeightCenter,
33  int a_GridSize, int a_MaxOffset
34  );
35 
36 protected:
38  int m_MaxSize;
39 
41  int m_MinSize;
42 
45 
48 
51 
54 
57 
60 
63 
66 
69 
72 
75 
78 
79  // cGridStructGen overrides:
80  virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override;
81 };
82 
83 
84 
85 
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)
float m_MaxCeilingHeightCenter
Maximum ceiling height at the ravine's center.
Definition: RoughRavines.h:74
cRoughRavines(int a_Seed, int a_MaxSize, int a_MinSize, float a_MaxCenterWidth, float a_MinCenterWidth, float a_MaxRoughness, float a_MinRoughness, float a_MaxFloorHeightEdge, float a_MinFloorHeightEdge, float a_MaxFloorHeightCenter, float a_MinFloorHeightCenter, float a_MaxCeilingHeightEdge, float a_MinCeilingHeightEdge, float a_MaxCeilingHeightCenter, float a_MinCeilingHeightCenter, int a_GridSize, int a_MaxOffset)
float m_MaxFloorHeightEdge
Maximum floor height at the ravine's edge.
Definition: RoughRavines.h:56
virtual cStructurePtr CreateStructure(int a_GridX, int a_GridZ, int a_OriginX, int a_OriginZ) override
Create a new structure at the specified gridpoint.
float m_MinCeilingHeightEdge
Minimum ceiling height at the ravine's edge.
Definition: RoughRavines.h:71
float m_MinCeilingHeightCenter
Minimum ceiling height at the ravine's center.
Definition: RoughRavines.h:77
float m_MaxCenterWidth
Maximum width of the ravine's center, in blocks.
Definition: RoughRavines.h:44
float m_MinFloorHeightEdge
Minimum floor height at the ravine's edge.
Definition: RoughRavines.h:59
float m_MaxFloorHeightCenter
Maximum floor height at the ravine's center.
Definition: RoughRavines.h:62
int m_MaxSize
Maximum size of the ravine, in each of the X / Z axis.
Definition: RoughRavines.h:38
int m_MinSize
Minimum size of the ravine.
Definition: RoughRavines.h:41
float m_MaxRoughness
Maximum roughness of the ravine.
Definition: RoughRavines.h:50
float m_MinRoughness
Minimum roughness of the ravine.
Definition: RoughRavines.h:53
float m_MinFloorHeightCenter
Minimum floor height at the ravine's center.
Definition: RoughRavines.h:65
float m_MaxCeilingHeightEdge
Maximum ceiling height at the ravine's edge.
Definition: RoughRavines.h:68
float m_MinCenterWidth
Minimum width of the ravine's center, in blocks.
Definition: RoughRavines.h:47