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

Go to the source code of this file.

Classes

class  cChunkClientHandles
 Non-owning view of a chunk's client handles. More...
 
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  cChunkCoordsWithBool
 
class  cChunkCoordsWithCallback
 Provides storage for a set of chunk coords together with a callback. 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...
 
using cBlockEntities = std::map< size_t, cBlockEntity * >
 
typedef std::list< cChunkCoordscChunkCoordsList
 
typedef std::vector< cChunkCoordscChunkCoordsVector
 
typedef std::list< cChunkCoordsWithBoolcChunkCoordsWithBoolList
 
typedef cCoordWithData< BLOCKTYPEcCoordWithBlock
 
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::list< sSetBlocksSetBlockList
 
typedef std::vector< sSetBlocksSetBlockVector
 

Macro Definition Documentation

#define AXIS_ORDER   AXIS_ORDER_XZY

Definition at line 19 of file ChunkDef.h.

#define AXIS_ORDER_XZY   2

Definition at line 18 of file ChunkDef.h.

#define AXIS_ORDER_YZX   1

Definition at line 17 of file ChunkDef.h.

Typedef Documentation

typedef unsigned char BLOCKTYPE

The datatype used by blockdata.

Definition at line 42 of file ChunkDef.h.

using cBlockEntities = std::map<size_t, cBlockEntity *>

Definition at line 34 of file ChunkDef.h.

typedef std::list<cChunkCoords> cChunkCoordsList

Definition at line 566 of file ChunkDef.h.

typedef std::vector<cChunkCoords> cChunkCoordsVector

Definition at line 567 of file ChunkDef.h.

Definition at line 603 of file ChunkDef.h.

Definition at line 666 of file ChunkDef.h.

Definition at line 665 of file ChunkDef.h.

typedef std::list<cCoordWithInt> cCoordWithIntList

Definition at line 668 of file ChunkDef.h.

typedef std::vector<cCoordWithInt> cCoordWithIntVector

Definition at line 669 of file ChunkDef.h.

using cEntityList = std::vector<OwnedEntity>

Definition at line 33 of file ChunkDef.h.

typedef unsigned char HEIGHTTYPE

The type used by the heightmap.

Definition at line 48 of file ChunkDef.h.

typedef unsigned char NIBBLETYPE

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

Definition at line 45 of file ChunkDef.h.

using OwnedEntity = std::unique_ptr<cEntity>

Definition at line 32 of file ChunkDef.h.

typedef std::list<sSetBlock> sSetBlockList

Definition at line 563 of file ChunkDef.h.

typedef std::vector<sSetBlock> sSetBlockVector

Definition at line 564 of file ChunkDef.h.