Cuberite
A lightweight, fast and extensible game server for Minecraft
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
Simulator
RedstoneSimulator.h
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
Simulator.h
"
5
6
7
8
9
10
class
cRedstoneSimulatorChunkData
11
{
12
public
:
13
virtual
~cRedstoneSimulatorChunkData
() = 0;
14
};
15
16
inline
cRedstoneSimulatorChunkData::~cRedstoneSimulatorChunkData
() {}
17
18
19
20
21
22
class
cRedstoneSimulator
:
23
public
cSimulator
24
{
25
typedef
cSimulator
super
;
26
public
:
27
28
cRedstoneSimulator
(
cWorld
& a_World) :
29
super(a_World)
30
{
31
}
32
33
virtual
void
Simulate(
float
a_Dt) = 0;
34
virtual
void
SimulateChunk(std::chrono::milliseconds a_Dt,
int
a_ChunkX,
int
a_ChunkZ,
cChunk
* a_Chunk) = 0;
35
virtual
bool
IsAllowedBlock(
BLOCKTYPE
a_BlockType) = 0;
36
virtual
void
AddBlock(
Vector3i
a_Block,
cChunk
* a_Chunk) = 0;
37
38
virtual
cRedstoneSimulatorChunkData
* CreateChunkData() = 0;
39
40
};
cRedstoneSimulator
Definition:
RedstoneSimulator.h:22
BLOCKTYPE
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition:
ChunkDef.h:42
cRedstoneSimulator::cRedstoneSimulator
cRedstoneSimulator(cWorld &a_World)
Definition:
RedstoneSimulator.h:28
cChunk
Definition:
Chunk.h:49
cSimulator
Base class for all block-based physics simulators (such as fluid, fire, falling blocks etc...
Definition:
Simulator.h:19
cWorld
Definition:
World.h:65
Simulator.h
cRedstoneSimulatorChunkData::~cRedstoneSimulatorChunkData
virtual ~cRedstoneSimulatorChunkData()=0
Definition:
RedstoneSimulator.h:16
cRedstoneSimulatorChunkData
Definition:
RedstoneSimulator.h:10
cRedstoneSimulator::super
cSimulator super
Definition:
RedstoneSimulator.h:25
Vector3< int >
Generated on Mon Feb 24 2020 09:04:17 for Cuberite by
1.8.11