summaryrefslogtreecommitdiff
path: root/src/simulation/elements/MORT.cpp
blob: f8f1d8c021471385ab67e81bf5b8461fa7bbbbf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "simulation/Elements.h"
//#TPT-Directive ElementClass Element_MORT PT_MORT 77
Element_MORT::Element_MORT()
{
    Identifier = "DEFAULT_PT_MORT";
    Name = "MORT";
    Colour = PIXPACK(0xE0E0E0);
    MenuVisible = 1;
    MenuSection = SC_CRACKER2;
    Enabled = 1;
    
    Advection = 0.0f;
    AirDrag = 0.00f * CFDS;
    AirLoss = 1.00f;
    Loss = 1.00f;
    Collision = -0.99f;
    Gravity = 0.0f;
    Diffusion = 0.01f;
    HotAir = 0.002f	* CFDS;
    Falldown = 0;
    
    Flammable = 0;
    Explosive = 0;
    Meltable = 0;
    Hardness = 0;
    
    Weight = -1;
    
    Temperature = R_TEMP+4.0f	+273.15f;
    HeatConduct = 60;
    Description = "Steam Train.";
    
    State = ST_NONE;
    Properties = TYPE_PART;
    
    LowPressure = IPL;
    LowPressureTransition = NT;
    HighPressure = IPH;
    HighPressureTransition = NT;
    LowTemperature = ITL;
    LowTemperatureTransition = NT;
    HighTemperature = ITH;
    HighTemperatureTransition = NT;
    
    Update = &Element_MORT::update;
    
}

//#TPT-Directive ElementHeader Element_MORT static int update(UPDATE_FUNC_ARGS)
int Element_MORT::update(UPDATE_FUNC_ARGS)
 {
	sim->create_part(-1, x, y-1, PT_SMKE);
	return 0;
}


Element_MORT::~Element_MORT() {}