Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Macros | Typedefs
ChunkDef.h File Reference
#include "BiomeDef.h"
Include dependency graph for ChunkDef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cChunkCoordCallback
 Interface class used as a callback for operations that involve chunk coords. More...
 
class  cChunkCoords
 
class  cChunkCoordsHash
 A simple hash function for chunk coords, we assume that chunk coords won't use more than 16 bits, so the hash is almost an identity. More...
 
class  cChunkDef
 Constants used throughout the code, useful typedefs and utility functions. More...
 
class  cClientDiffCallback
 Interface class used for comparing clients of two chunks. More...
 
class  cCoordWithData< X >
 Generic template that can store any kind of data together with a triplet of 3 coords. More...
 
struct  sSetBlock
 

Macros

#define AXIS_ORDER   AXIS_ORDER_XZY
 
#define AXIS_ORDER_XZY   2
 
#define AXIS_ORDER_YZX   1
 

Typedefs

typedef unsigned char BLOCKTYPE
 The datatype used by blockdata. More...
 
typedef std::list< cChunkCoordscChunkCoordsList
 
typedef std::vector< cChunkCoordscChunkCoordsVector
 
typedef cCoordWithData< int > cCoordWithInt
 
typedef std::list< cCoordWithIntcCoordWithIntList
 
typedef std::vector< cCoordWithIntcCoordWithIntVector
 
using cEntityList = std::vector< OwnedEntity >
 
typedef unsigned char HEIGHTTYPE
 The type used by the heightmap. More...
 
typedef unsigned char NIBBLETYPE
 The datatype used by nibbledata (meta, light, skylight) More...
 
using OwnedEntity = std::unique_ptr< cEntity >
 
typedef std::vector< sSetBlocksSetBlockVector
 

Macro Definition Documentation

◆ AXIS_ORDER

#define AXIS_ORDER   AXIS_ORDER_XZY

Definition at line 19 of file ChunkDef.h.

◆ AXIS_ORDER_XZY

#define AXIS_ORDER_XZY   2

Definition at line 18 of file ChunkDef.h.

◆ AXIS_ORDER_YZX

#define AXIS_ORDER_YZX   1

Definition at line 17 of file ChunkDef.h.

Typedef Documentation

◆ BLOCKTYPE

typedef unsigned char BLOCKTYPE

The datatype used by blockdata.

Definition at line 41 of file ChunkDef.h.

◆ cChunkCoordsList

typedef std::list<cChunkCoords> cChunkCoordsList

Definition at line 426 of file ChunkDef.h.

◆ cChunkCoordsVector

typedef std::vector<cChunkCoords> cChunkCoordsVector

Definition at line 427 of file ChunkDef.h.

◆ cCoordWithInt

Definition at line 483 of file ChunkDef.h.

◆ cCoordWithIntList

typedef std::list<cCoordWithInt> cCoordWithIntList

Definition at line 485 of file ChunkDef.h.

◆ cCoordWithIntVector

typedef std::vector<cCoordWithInt> cCoordWithIntVector

Definition at line 486 of file ChunkDef.h.

◆ cEntityList

using cEntityList = std::vector<OwnedEntity>

Definition at line 33 of file ChunkDef.h.

◆ HEIGHTTYPE

typedef unsigned char HEIGHTTYPE

The type used by the heightmap.

Definition at line 47 of file ChunkDef.h.

◆ NIBBLETYPE

typedef unsigned char NIBBLETYPE

The datatype used by nibbledata (meta, light, skylight)

Definition at line 44 of file ChunkDef.h.

◆ OwnedEntity

using OwnedEntity = std::unique_ptr<cEntity>

Definition at line 32 of file ChunkDef.h.

◆ sSetBlockVector

typedef std::vector<sSetBlock> sSetBlockVector

Definition at line 424 of file ChunkDef.h.