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

#include <NoopRedstoneSimulator.h>

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

Public Member Functions

virtual void AddBlock (Vector3i a_Block, cChunk *a_Chunk) override
 Called to simulate a new block. More...
 
virtual cRedstoneSimulatorChunkDataCreateChunkData () 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...
 
- Public Member Functions inherited from cRedstoneSimulator
 cRedstoneSimulator (cWorld &a_World)
 
- Public Member Functions inherited from cSimulator
 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

- Protected Attributes inherited from cSimulator
cWorldm_World
 

Detailed Description

Definition at line 10 of file NoopRedstoneSimulator.h.

Member Typedef Documentation

Definition at line 13 of file NoopRedstoneSimulator.h.

Constructor & Destructor Documentation

cRedstoneNoopSimulator::cRedstoneNoopSimulator ( cWorld a_World)
inline

Definition at line 16 of file NoopRedstoneSimulator.h.

Member Function Documentation

virtual void cRedstoneNoopSimulator::AddBlock ( Vector3i  a_Block,
cChunk a_Chunk 
)
inlineoverridevirtual

Called to simulate a new block.

Implements cRedstoneSimulator.

Definition at line 30 of file NoopRedstoneSimulator.h.

virtual cRedstoneSimulatorChunkData* cRedstoneNoopSimulator::CreateChunkData ( void  )
inlineoverridevirtual

Implements cRedstoneSimulator.

Definition at line 36 of file NoopRedstoneSimulator.h.

virtual bool cRedstoneNoopSimulator::IsAllowedBlock ( BLOCKTYPE  a_BlockType)
inlineoverridevirtual

Returns true if the specified block type is "interesting" for this simulator.

Implements cRedstoneSimulator.

Definition at line 29 of file NoopRedstoneSimulator.h.

virtual void cRedstoneNoopSimulator::Simulate ( float  a_Dt)
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.

virtual void cRedstoneNoopSimulator::SimulateChunk ( std::chrono::milliseconds  a_Dt,
int  a_ChunkX,
int  a_ChunkZ,
cChunk a_Chunk 
)
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.


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