Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Private Types | List of all members
cRedstoneSimulator Class Referenceabstract

#include <RedstoneSimulator.h>

Inheritance diagram for cRedstoneSimulator:
Inheritance graph
[legend]
Collaboration diagram for cRedstoneSimulator:
Collaboration graph
[legend]

Public Member Functions

virtual cRedstoneSimulatorChunkDataCreateChunkData ()=0
 
- Public Member Functions inherited from cSimulator
 cSimulator (cWorld &a_World)
 
virtual ~cSimulator ()
 

Private Types

using Super = cSimulator
 

Additional Inherited Members

- Static Public Member Functions inherited from cSimulator
static std::array< Vector3i, 5 > GetLinkedOffsets (Vector3i Offset)
 For a given offset from a position, return the offsets that represent the adjacents of the newly offset position, excluding the old position. More...
 
- Static Public Attributes inherited from cSimulator
static constexpr std::array< Vector3i, 6 > AdjacentOffsets
 Contains offsets for direct adjacents of any position. More...
 
- Protected Member Functions inherited from cSimulator
virtual void AddBlock (cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_Block)=0
 Called to simulate a new block. More...
 
virtual void Simulate (float a_Dt)
 
virtual void SimulateChunk (std::chrono::milliseconds a_Dt, int a_ChunkX, int a_ChunkZ, cChunk *a_Chunk)=0
 
virtual void WakeUp (cChunk &a_Chunk, Vector3i a_Position, BLOCKTYPE a_Block)
 Called to simulate a single new block, typically as a result of a single block break or change. More...
 
virtual void WakeUp (cChunk &a_Chunk, Vector3i a_Position, Vector3i a_Offset, BLOCKTYPE a_Block)
 Called to simulate a single block, synthesised by the simulator manager. More...
 
- Protected Attributes inherited from cSimulator
cWorldm_World
 

Detailed Description

Definition at line 23 of file RedstoneSimulator.h.

Member Typedef Documentation

◆ Super

Definition at line 26 of file RedstoneSimulator.h.

Member Function Documentation

◆ CreateChunkData()

virtual cRedstoneSimulatorChunkData* cRedstoneSimulator::CreateChunkData ( )
pure virtual

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