1 #include "simulation/ElementCommon.h"
2
3 static VideoBuffer *iconGen(int wallID, int width, int height);
4
Element_NONE()5 void Element::Element_NONE()
6 {
7 Identifier = "DEFAULT_PT_NONE";
8 Name = "";
9 Colour = PIXPACK(0x000000);
10 MenuVisible = 1;
11 MenuSection = SC_SPECIAL;
12 Enabled = 1;
13
14 Advection = 0.0f;
15 AirDrag = 0.00f * CFDS;
16 AirLoss = 1.00f;
17 Loss = 0.00f;
18 Collision = 0.0f;
19 Gravity = 0.0f;
20 Diffusion = 0.00f;
21 HotAir = 0.000f * CFDS;
22 Falldown = 0;
23
24 Flammable = 0;
25 Explosive = 0;
26 Meltable = 0;
27 Hardness = 1;
28
29 Weight = 100;
30
31 HeatConduct = 0;
32 Description = "Erases particles.";
33
34 Properties = 0;
35
36 LowPressure = IPL;
37 LowPressureTransition = NT;
38 HighPressure = IPH;
39 HighPressureTransition = NT;
40 LowTemperature = ITL;
41 LowTemperatureTransition = NT;
42 HighTemperature = ITH;
43 HighTemperatureTransition = NT;
44
45 IconGenerator = &iconGen;
46 }
47
iconGen(int wallID,int width,int height)48 static VideoBuffer *iconGen(int wallID, int width, int height)
49 {
50 VideoBuffer * newTexture = new VideoBuffer(width, height);
51
52 for (int j=3; j<(width-4)/2; j++)
53 {
54 newTexture->SetPixel(j+6, j, 0xFF, 0, 0, 255);
55 newTexture->SetPixel(j+7, j, 0xFF, 0, 0, 255);
56 newTexture->SetPixel(-j+19, j, 0xFF, 0, 0, 255);
57 newTexture->SetPixel(-j+20, j, 0xFF, 0, 0, 255);
58 }
59
60 return newTexture;
61 }
62