Guest User

GLST

a guest
Dec 31st, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.31 KB | None | 0 0
  1. #include "simulation/Elements.h"
  2.  
  3. //#TPT-Directive ElementClass Element_GLST PT_GLST 401
  4. Element_GLST::Element_GLST() {
  5.  
  6.     Identifier = "DEFAULT_PT_GLST";
  7.     Name = "GLST";
  8.     Colour = PIXPACK(0xFFFF00);
  9.     MenuVisible = 1;
  10.     MenuSection = 8;
  11.     Enabled = 1;
  12.  
  13.     Advection = 0.8f;
  14.     AirDrag = 0.01f * CFDS;
  15.     AirLoss = 0.01f;
  16.     Loss = 0.8f;
  17.     Collision = 0.0f;
  18.     Gravity = 0.6f;
  19.     Diffusion = 0.00f;
  20.     HotAir = 0.000f * CFDS;
  21.     Falldown = 1;
  22.  
  23.     Flammable = 0;
  24.     Explosive = 0;
  25.     Meltable = 0;
  26.     Hardness = 20;
  27.  
  28.     Weight = 100;
  29.  
  30.     Temperature = 300.0f;
  31.     HeatConduct = 1;
  32.     Description = "GLST ";
  33.  
  34.     Properties = TYPE_SOLID;
  35.  
  36.     LowPressure = IPL;
  37.     LowPressureTransition = NT;
  38.     HighPressure = IPH;
  39.     HighPressureTransition = NT;
  40.     LowTemperature = IPL;
  41.     LowTemperatureTransition = NT;
  42.     HighTemperature = 366.0f;
  43.     HighTemperatureTransition = PT_EGLS;
  44.  
  45.     Update = &Element_GLST::update;
  46.     Graphics = &Element_GLST::graphics;
  47. }
  48.  
  49. //#TPT-Directive ElementHeader Element_GLST static int update(UPDATE_FUNC_ARGS)
  50. int Element_GLST::update(UPDATE_FUNC_ARGS) {
  51.     return 0;
  52. }
  53.  
  54. //#TPT-Directive ElementHeader Element_GLST static int graphics(GRAPHICS_FUNC_ARGS)
  55. int Element_GLST::graphics(GRAPHICS_FUNC_ARGS) {
  56.     *colr = 204 + (rand() % 50);
  57.     *colg = 204 + (rand() % 50);
  58.     *colb = 0;
  59.  
  60.     return 0;
  61. }
  62.  
  63. Element_GLST::~Element_GLST() {
  64. }
Advertisement
Add Comment
Please, Sign In to add comment