summaryrefslogtreecommitdiffstats
path: root/source/cFluidSimulator.h
diff options
context:
space:
mode:
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;