Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "simulation/Elements.h"
- #include <time.h> //Probably here :)
- //#TPT-Directive ElementClass Element_BCOL PT_BCOL 73
- Element_BCOL::Element_BCOL()
- {
- srand(time(NULL)); //Initialize random number generator
- Identifier = "DEFAULT_PT_BCOL";
- Name = "BCOL";
- Colour = PIXPACK((rand() % 255) << 4 | (rand() % 255) << 2 | (rand() % 255)); //Excuse the rubbish code. I think that's it.
- MenuVisible = 1;
- MenuSection = SC_POWDERS;
- Enabled = 1;
- Advection = 0.4f;
- AirDrag = 0.04f * CFDS;
- AirLoss = 0.94f;
- Loss = 0.95f;
- Collision = -0.1f;
- Gravity = 0.3f;
- Diffusion = 0.00f;
- HotAir = 0.000f * CFDS;
- Falldown = 1;
- Flammable = 0;
- Explosive = 0;
- Meltable = 0;
- Hardness = 2;
- Weight = 90;
- Temperature = R_TEMP+0.0f +273.15f;
- HeatConduct = 150;
- Description = "Broken Coal. Heavy particles, burns slowly.";
- State = ST_SOLID;
- Properties = TYPE_PART;
- LowPressure = IPL;
- LowPressureTransition = NT;
- HighPressure = IPH;
- HighPressureTransition = NT;
- LowTemperature = ITL;
- LowTemperatureTransition = NT;
- HighTemperature = ITH;
- HighTemperatureTransition = NT;
- Update = &Element_COAL::update;
- Graphics = &Element_COAL::graphics;
- }
- Element_BCOL::~Element_BCOL() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement