Cuberite
A lightweight, fast and extensible game server for Minecraft
VaporizeFluidSimulator.h
Go to the documentation of this file.
1 
2 // VaporizeFluidSimulator.h
3 
4 // Declares the cVaporizeFluidSimulator class representing a fluid simulator that replaces all fluid blocks with air
5 // Useful for water simulation in the Nether
6 
7 
8 
9 
10 
11 #pragma once
12 
13 #include "FluidSimulator.h"
14 
15 
16 
17 
18 
20  public cFluidSimulator
21 {
23 
24 public:
25  cVaporizeFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid);
26 
27  // cSimulator overrides:
28  virtual void AddBlock(Vector3i a_Block, cChunk * a_Chunk) override;
29  virtual void Simulate(float a_Dt) override;
30 } ;
31 
32 
33 
34 
cVaporizeFluidSimulator(cWorld &a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid)
unsigned char BLOCKTYPE
The datatype used by blockdata.
Definition: ChunkDef.h:42
virtual void Simulate(float a_Dt) override
Called in each tick, a_Dt is the time passed since the last tick, in msec.
virtual void AddBlock(Vector3i a_Block, cChunk *a_Chunk) override
Called to simulate a new block.
Definition: Chunk.h:49
Definition: World.h:65