1 #ifndef ELEMENTCOMMON_H 2 #define ELEMENTCOMMON_H 3 // This header should be included by all files in src/elements/ 4 5 #include <cmath> 6 7 #include "Misc.h" 8 9 #include "common/tpt-rand.h" 10 #include "common/tpt-compat.h" 11 #include "common/tpt-minmax.h" 12 13 #include "ElementDefs.h" 14 #include "ElementClasses.h" 15 #include "Particle.h" 16 #include "ElementGraphics.h" 17 #include "Simulation.h" 18 19 #include "graphics/Renderer.h" 20 21 #define IPL -257.0f 22 #define IPH 257.0f 23 #define ITL MIN_TEMP-1 24 #define ITH MAX_TEMP+1 25 26 // no transition (PT_NONE means kill part) 27 #define NT -1 28 29 // special transition - lava ctypes etc need extra code, which is only found and run if ST is given 30 #define ST PT_NUM 31 32 #endif 33