summaryrefslogtreecommitdiff
path: root/src/simulation/Element.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-07 16:59:50 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-07 16:59:50 (GMT)
commit51b17badf4c72270bb762ea795d05d51c8b355e3 (patch)
treeb66671e0496b68114c6e91eedb58bf783d5343c0 /src/simulation/Element.h
parentfb111f42d00dd8a2041bae970c0913e096ac5101 (diff)
downloadpowder-51b17badf4c72270bb762ea795d05d51c8b355e3.zip
powder-51b17badf4c72270bb762ea795d05d51c8b355e3.tar.gz
A bit of refactoring (elements)
Diffstat (limited to 'src/simulation/Element.h')
-rw-r--r--src/simulation/Element.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/simulation/Element.h b/src/simulation/Element.h
index f00751e..7cd379e 100644
--- a/src/simulation/Element.h
+++ b/src/simulation/Element.h
@@ -5,10 +5,19 @@
#include <cmath>
#include "Simulation.h"
#include "Renderer.h"
-#include "ElementFunctions.h"
-//#include "powder.h"
#include "Gravity.h"
#include "Misc.h"
#include "ElementGraphics.h"
+#define IPL -257.0f
+#define IPH 257.0f
+#define ITL MIN_TEMP-1
+#define ITH MAX_TEMP+1
+
+// no transition (PT_NONE means kill part)
+#define NT -1
+
+// special transition - lava ctypes etc need extra code, which is only found and run if ST is given
+#define ST PT_NUM
+
#endif