View difference between Paste ID: tn6S8ciB and vGm4vrDz
SHOW: | | - or go back to the newest paste.
1
#include "simulation/Elements.h"
2
#include <time.h> //Probably here :)
3
//#TPT-Directive ElementClass Element_BCOL PT_BCOL 73
4
Element_BCOL::Element_BCOL()
5
{
6
	srand(time(NULL));	//Initialize random number generator
7
	Identifier = "DEFAULT_PT_BCOL";
8
	Name = "BCOL";
9-
	Colour = PIXPACK((rand() % 255) | (rand() % 255) | (rand() % 255)); //Excuse the rubbish code. I think that's it.
9+
	Colour = PIXPACK((rand() % 255) << 4 | (rand() % 255) << 2 | (rand() % 255)); //Excuse the rubbish code. I think that's it.
10
	MenuVisible = 1;
11
	MenuSection = SC_POWDERS;
12
	Enabled = 1;
13
	
14
	Advection = 0.4f;
15
	AirDrag = 0.04f * CFDS;
16
	AirLoss = 0.94f;
17
	Loss = 0.95f;
18
	Collision = -0.1f;
19
	Gravity = 0.3f;
20
	Diffusion = 0.00f;
21
	HotAir = 0.000f	* CFDS;
22
	Falldown = 1;
23
	
24
	Flammable = 0;
25
	Explosive = 0;
26
	Meltable = 0;
27
	Hardness = 2;
28
	
29
	Weight = 90;
30
	
31
	Temperature = R_TEMP+0.0f	+273.15f;
32
	HeatConduct = 150;
33
	Description = "Broken Coal. Heavy particles, burns slowly.";
34
	
35
	State = ST_SOLID;
36
	Properties = TYPE_PART;
37
	
38
	LowPressure = IPL;
39
	LowPressureTransition = NT;
40
	HighPressure = IPH;
41
	HighPressureTransition = NT;
42
	LowTemperature = ITL;
43
	LowTemperatureTransition = NT;
44
	HighTemperature = ITH;
45
	HighTemperatureTransition = NT;
46
	
47
	Update = &Element_COAL::update;
48
	Graphics = &Element_COAL::graphics;
49
}
50
51
Element_BCOL::~Element_BCOL() {}