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

This class is used to store a column pattern initialized at runtime, so that the program doesn't need to explicitly set 256 values for each pattern Each pattern has 256 blocks so that there's no need to check pattern bounds when assigning the pattern - there will always be enough pattern left, even for the whole-chunk-height columns. More...

Collaboration diagram for cPattern:
Collaboration graph
[legend]

Classes

struct  BlockInfo
 

Public Member Functions

constexpr cPattern (std::initializer_list< BlockInfo > a_TopBlocks)
 
const BlockInfoGet (void) const
 

Protected Attributes

BlockInfo m_Pattern [cChunkDef::Height] = {}
 

Detailed Description

This class is used to store a column pattern initialized at runtime, so that the program doesn't need to explicitly set 256 values for each pattern Each pattern has 256 blocks so that there's no need to check pattern bounds when assigning the pattern - there will always be enough pattern left, even for the whole-chunk-height columns.

Definition at line 25 of file CompoGenBiomal.cpp.

Constructor & Destructor Documentation

◆ cPattern()

constexpr cPattern::cPattern ( std::initializer_list< BlockInfo a_TopBlocks)
inlineconstexpr

Definition at line 34 of file CompoGenBiomal.cpp.

Member Function Documentation

◆ Get()

const BlockInfo* cPattern::Get ( void  ) const
inline

Definition at line 48 of file CompoGenBiomal.cpp.

Member Data Documentation

◆ m_Pattern

BlockInfo cPattern::m_Pattern[cChunkDef::Height] = {}
protected

Definition at line 51 of file CompoGenBiomal.cpp.


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