![]() |
Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <NoopRedstoneSimulator.h>
Public Member Functions | |
virtual void | AddBlock (Vector3i a_Block, cChunk *a_Chunk) override |
Called to simulate a new block. More... | |
virtual cRedstoneSimulatorChunkData * | CreateChunkData () override |
cRedstoneNoopSimulator (cWorld &a_World) | |
virtual bool | IsAllowedBlock (BLOCKTYPE a_BlockType) override |
Returns true if the specified block type is "interesting" for this simulator. More... | |
virtual void | Simulate (float a_Dt) override |
Called in each tick, a_Dt is the time passed since the last tick, in msec. More... | |
virtual void | SimulateChunk (std::chrono::milliseconds a_Dt, int a_ChunkX, int a_ChunkZ, cChunk *a_Chunk) override |
Called in each tick for each chunk, a_Dt is the time passed since the last tick, in msec; direct access to chunk data available. More... | |
![]() | |
cRedstoneSimulator (cWorld &a_World) | |
![]() | |
cSimulator (cWorld &a_World) | |
void | WakeUp (Vector3i a_Block, cChunk *a_Chunk) |
Called when a block changes. More... | |
void | WakeUpArea (const cCuboid &a_Area) |
Does the same processing as WakeUp, but for all blocks within the specified area. More... | |
virtual | ~cSimulator () |
Private Types | |
typedef cRedstoneSimulator | super |
Additional Inherited Members | |
![]() | |
cWorld & | m_World |
Definition at line 10 of file NoopRedstoneSimulator.h.
|
private |
Definition at line 13 of file NoopRedstoneSimulator.h.
|
inline |
Definition at line 16 of file NoopRedstoneSimulator.h.
|
inlineoverridevirtual |
Called to simulate a new block.
Implements cRedstoneSimulator.
Definition at line 30 of file NoopRedstoneSimulator.h.
|
inlineoverridevirtual |
Implements cRedstoneSimulator.
Definition at line 36 of file NoopRedstoneSimulator.h.
|
inlineoverridevirtual |
Returns true if the specified block type is "interesting" for this simulator.
Implements cRedstoneSimulator.
Definition at line 29 of file NoopRedstoneSimulator.h.
|
inlineoverridevirtual |
Called in each tick, a_Dt is the time passed since the last tick, in msec.
Implements cRedstoneSimulator.
Definition at line 21 of file NoopRedstoneSimulator.h.
|
inlineoverridevirtual |
Called in each tick for each chunk, a_Dt is the time passed since the last tick, in msec; direct access to chunk data available.
Implements cRedstoneSimulator.
Definition at line 22 of file NoopRedstoneSimulator.h.