summaryrefslogtreecommitdiffstats
path: root/source/cLavaSimulator.h
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-06 10:23:20 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-06 10:23:20 +0100
commit36f7084e3fb4193676b14f302d0f961f2102e4ba (patch)
treeb2e7d7c7d1854dbe484605b4054e707c0bd09cef /source/cLavaSimulator.h
parentFinished most of piston class. Pistons should work when a redstone current with wire is lit up or extinguished near them but don't yet. There'sa bug to kill. (diff)
downloadcuberite-36f7084e3fb4193676b14f302d0f961f2102e4ba.tar
cuberite-36f7084e3fb4193676b14f302d0f961f2102e4ba.tar.gz
cuberite-36f7084e3fb4193676b14f302d0f961f2102e4ba.tar.bz2
cuberite-36f7084e3fb4193676b14f302d0f961f2102e4ba.tar.lz
cuberite-36f7084e3fb4193676b14f302d0f961f2102e4ba.tar.xz
cuberite-36f7084e3fb4193676b14f302d0f961f2102e4ba.tar.zst
cuberite-36f7084e3fb4193676b14f302d0f961f2102e4ba.zip
Diffstat (limited to '')
-rw-r--r--source/cLavaSimulator.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/cLavaSimulator.h b/source/cLavaSimulator.h
new file mode 100644
index 000000000..f1c59b939
--- /dev/null
+++ b/source/cLavaSimulator.h
@@ -0,0 +1,25 @@
+#pragma once
+
+class Vector3i;
+class cWorld;
+class cLavaSimulator
+{
+public:
+ cLavaSimulator( cWorld* a_World );
+ ~cLavaSimulator();
+
+ void Simulate( float a_Dt );
+ void WakeUp( int a_X, int a_Y, int a_Z );
+
+private:
+ void AddBlock( int a_X, int a_Y, int a_Z);
+ char GetHighestLevelAround( int a_X, int a_Y, int a_Z );
+
+ bool IsLavaBlock( char a_BlockID );
+
+ float m_Timer;
+ cWorld* m_World;
+
+ class LavaData;
+ LavaData* m_Data;
+};