summaryrefslogtreecommitdiff
path: root/src/simulation/elements/FRME.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/FRME.cpp')
-rw-r--r--src/simulation/elements/FRME.cpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/simulation/elements/FRME.cpp b/src/simulation/elements/FRME.cpp
new file mode 100644
index 0000000..62668ea
--- /dev/null
+++ b/src/simulation/elements/FRME.cpp
@@ -0,0 +1,59 @@
+#include "simulation/Elements.h"
+//#TPT-Directive ElementClass Element_FRME PT_FRME 169
+Element_FRME::Element_FRME()
+{
+ Identifier = "DEFAULT_PT_FRME";
+ Name = "FRME";
+ Colour = PIXPACK(0xBBDD50);
+ MenuVisible = 1;
+ MenuSection = SC_ELEC;
+ Enabled = 1;
+
+ Advection = 0.0f;
+ AirDrag = 0.00f * CFDS;
+ AirLoss = 0.90f;
+ Loss = 0.00f;
+ Collision = 0.0f;
+ Gravity = 0.0f;
+ Diffusion = 0.00f;
+ HotAir = 0.000f * CFDS;
+ Falldown = 0;
+
+ Flammable = 0;
+ Explosive = 0;
+ Meltable = 0;
+ Hardness = 1;
+
+ Weight = 100;
+
+ Temperature = R_TEMP+0.0f +273.15f;
+ HeatConduct = 0;
+ Description = "Frame, can be used with pistons to push many particles";
+
+ State = ST_SOLID;
+ Properties = TYPE_SOLID|PROP_LIFE_DEC;
+
+ LowPressure = IPL;
+ LowPressureTransition = NT;
+ HighPressure = IPH;
+ HighPressureTransition = NT;
+ LowTemperature = ITL;
+ LowTemperatureTransition = NT;
+ HighTemperature = ITH;
+ HighTemperatureTransition = NT;
+
+ Graphics = &Element_FRME::graphics;
+}
+
+//#TPT-Directive ElementHeader Element_FRME static int graphics(GRAPHICS_FUNC_ARGS)
+int Element_FRME::graphics(GRAPHICS_FUNC_ARGS)
+{
+ if(cpart->ctype)
+ {
+ *colr -= 60;
+ *colg -= 60;
+ }
+ return 0;
+}
+
+Element_FRME::~Element_FRME() {} \ No newline at end of file