summaryrefslogtreecommitdiffstats
path: root/src/Simulator/VanillaFluidSimulator.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-06 13:24:28 +0100
committermadmaxoft <github@xoft.cz>2014-03-06 13:24:28 +0100
commit3e80e636653274d138c1c5c6551e81a267b4d467 (patch)
tree821b710200bdccbd68386a34b83a425f15ee9b7d /src/Simulator/VanillaFluidSimulator.h
parentMerge pull request #747 from mc-server/InfoDump_Github (diff)
parentImplemented vanilla-like fluid simulator (diff)
downloadcuberite-3e80e636653274d138c1c5c6551e81a267b4d467.tar
cuberite-3e80e636653274d138c1c5c6551e81a267b4d467.tar.gz
cuberite-3e80e636653274d138c1c5c6551e81a267b4d467.tar.bz2
cuberite-3e80e636653274d138c1c5c6551e81a267b4d467.tar.lz
cuberite-3e80e636653274d138c1c5c6551e81a267b4d467.tar.xz
cuberite-3e80e636653274d138c1c5c6551e81a267b4d467.tar.zst
cuberite-3e80e636653274d138c1c5c6551e81a267b4d467.zip
Diffstat (limited to 'src/Simulator/VanillaFluidSimulator.h')
-rw-r--r--src/Simulator/VanillaFluidSimulator.h42
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);
+
+} ;
+
+
+
+