diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-26 21:57:12 +0100 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-26 21:57:12 +0100 |
commit | 9f77572fb0d045229556314ba9d7aa0f52ad5635 (patch) | |
tree | 67bf3cfaf013be8566e0d541c1a1b571719816f7 /source/cFluidSimulator.h | |
parent | - improved ClosestPlayerDetection (Really the closest now ;)) (diff) | |
download | cuberite-9f77572fb0d045229556314ba9d7aa0f52ad5635.tar cuberite-9f77572fb0d045229556314ba9d7aa0f52ad5635.tar.gz cuberite-9f77572fb0d045229556314ba9d7aa0f52ad5635.tar.bz2 cuberite-9f77572fb0d045229556314ba9d7aa0f52ad5635.tar.lz cuberite-9f77572fb0d045229556314ba9d7aa0f52ad5635.tar.xz cuberite-9f77572fb0d045229556314ba9d7aa0f52ad5635.tar.zst cuberite-9f77572fb0d045229556314ba9d7aa0f52ad5635.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cFluidSimulator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cFluidSimulator.h b/source/cFluidSimulator.h index 758bfc022..1b4cd0d55 100644 --- a/source/cFluidSimulator.h +++ b/source/cFluidSimulator.h @@ -1,5 +1,7 @@ #pragma once
+#include "cSimulator.h"
+
//TODO This definitly needs a better naming :D but how?
enum Direction
@@ -15,14 +17,13 @@ enum Direction class Vector3i;
class cWorld;
-class cFluidSimulator
+class cFluidSimulator : public cSimulator
{
public:
cFluidSimulator( cWorld* a_World );
~cFluidSimulator();
virtual void Simulate( float a_Dt );
- void WakeUp( int a_X, int a_Y, int a_Z );
//Gets the flowing direction. if a_Over is true also the block over the current block affects the direction (standard)
Direction GetFlowingDirection(int a_X, int a_Y, int a_Z, bool a_Over = true);
@@ -31,12 +32,11 @@ public: virtual inline bool IsPassableForFluid( char a_BlockID ) = 0;
protected:
- void AddBlock( int a_X, int a_Y, int a_Z);
+ virtual void AddBlock( int a_X, int a_Y, int a_Z);
char GetHighestLevelAround( int a_X, int a_Y, int a_Z );
float m_Timer;
- cWorld* m_World;
class FluidData;
FluidData* m_Data;
|