diff options
author | andrew <xdotftw@gmail.com> | 2014-03-05 14:54:38 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-03-05 14:54:38 +0100 |
commit | 1ea17c0a75b84d5f4070c57ad2a7d6cbb4e8b79b (patch) | |
tree | 4a59ab434a79832b28ce930faef83f9edd46e651 /src/Simulator/VanillaFluidSimulator.h | |
parent | Merge pull request #748 from xdot/master (diff) | |
download | cuberite-1ea17c0a75b84d5f4070c57ad2a7d6cbb4e8b79b.tar cuberite-1ea17c0a75b84d5f4070c57ad2a7d6cbb4e8b79b.tar.gz cuberite-1ea17c0a75b84d5f4070c57ad2a7d6cbb4e8b79b.tar.bz2 cuberite-1ea17c0a75b84d5f4070c57ad2a7d6cbb4e8b79b.tar.lz cuberite-1ea17c0a75b84d5f4070c57ad2a7d6cbb4e8b79b.tar.xz cuberite-1ea17c0a75b84d5f4070c57ad2a7d6cbb4e8b79b.tar.zst cuberite-1ea17c0a75b84d5f4070c57ad2a7d6cbb4e8b79b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/VanillaFluidSimulator.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/Simulator/VanillaFluidSimulator.h b/src/Simulator/VanillaFluidSimulator.h new file mode 100644 index 000000000..a9ea98b5a --- /dev/null +++ b/src/Simulator/VanillaFluidSimulator.h @@ -0,0 +1,42 @@ + +// VanillaFluidSimulator.h + + + + + +#pragma once + +#include "FloodyFluidSimulator.h" + + + + + +// fwd: +class cBlockArea; + + + + + +class cVanillaFluidSimulator : + public cFloodyFluidSimulator +{ + typedef cFloodyFluidSimulator super; + +public: + cVanillaFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid, NIBBLETYPE a_Falloff, int a_TickDelay, int a_NumNeighborsForSource); + +protected: + // cFloodyFluidSimulator overrides: + virtual void Spread(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_NewMeta) override; + + /** Recursively calculates the minimum number of blocks needed to descend a level. */ + int CalculateFlowCost(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, Direction a_Dir, unsigned a_Iteration = 0); + +} ; + + + + |