summaryrefslogtreecommitdiffstats
path: root/source/cFluidSimulator.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-14 14:37:13 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-14 14:37:13 +0100
commit9f38c219e2851324b8b2694315abed4d3138fca2 (patch)
tree6114c3a98299274030561cab343b35e2dabb78c8 /source/cFluidSimulator.h
parentFixing build for linux using GNUmakefile (explicitly removed LeakFinder and StackWalker) (diff)
downloadcuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar
cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.gz
cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.bz2
cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.lz
cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.xz
cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.zst
cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.zip
Diffstat (limited to 'source/cFluidSimulator.h')
-rw-r--r--source/cFluidSimulator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/cFluidSimulator.h b/source/cFluidSimulator.h
index d4379623d..afacea5f7 100644
--- a/source/cFluidSimulator.h
+++ b/source/cFluidSimulator.h
@@ -1,6 +1,7 @@
#pragma once
#include "cSimulator.h"
+#include "Vector3i.h"
//TODO This definitly needs a better naming :D but how?
@@ -29,12 +30,16 @@ public:
Direction GetFlowingDirection(int a_X, int a_Y, int a_Z, bool a_Over = true);
virtual bool IsAllowedBlock( char a_BlockID ) = 0;
+ virtual bool IsStationaryBlock( char a_BlockID);
virtual bool IsPassableForFluid( char a_BlockID );
bool CanWashAway( char a_BlockID );
+ bool IsSolidBlock(char a_BlockID);
protected:
virtual void AddBlock( int a_X, int a_Y, int a_Z);
char GetHighestLevelAround( int a_X, int a_Y, int a_Z );
+ bool UniqueSituation(Vector3i a_Pos); //Applys special for this fluid rules like generation of water betwin sources, returns false if it is necessary to apply general rules
+ void ApplyUniqueToNearest(Vector3i a_Pos);
float m_Timer;
@@ -43,6 +48,7 @@ protected:
//Customize
char m_FluidBlock;
+ char m_StationaryFluidBlock;
char m_MaxHeight;
char m_FlowReduction;