summaryrefslogtreecommitdiffstats
path: root/source/cLavaSimulator.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cLavaSimulator.h')
-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;
+};