Advertisement
tommig

Untitled

Nov 12th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. Elementclasses.cpp:
  2. elements.push_back(Element_METH());
  3. Meth.cpp
  4. #include "simulation/Elements.h"
  5. //#TPT-Directive ElementClass Element_METH PT_METH 167
  6. Element_METH::Element_METH()
  7. {
  8. Identifier = "DEFAULT_PT_METH";
  9. Name = "METH";
  10. Colour = PIXPACK(0xBFB8BB);
  11. MenuVisible = 1;
  12. MenuSection = SC_GAS;
  13. Enabled = 1;
  14.  
  15. Advection = 0.6f;
  16. AirDrag = 0.01f * CFDS;
  17. AirLoss = 0.98f;
  18. Loss = 0.60f;
  19. Collision = -0.1f;
  20. Gravity = 0.0f;
  21. Diffusion = 1.00f;
  22. HotAir = 0.000f * CFDS;
  23. Falldown = 0;
  24.  
  25. Flammable = 50;
  26. Explosive = 0;
  27. Meltable = 0;
  28. Hardness = 0;
  29.  
  30. Weight = 1;
  31.  
  32. Temperature = R_TEMP+0.0f +273.15f;
  33. HeatConduct = 30;
  34. Description = "Methane, flammable gas";
  35.  
  36. State = ST_GAS;
  37. Properties = TYPE_GAS;
  38.  
  39. LowPressure = IPL;
  40. LowPressureTransition = NT;
  41. HighPressure = IPH;
  42. HighPressureTransition = NT;
  43. LowTemperature = ITL;
  44. LowTemperatureTransition = NT;
  45. HighTemperature = 600.00;
  46. HighTemperatureTransition = PT_FIRE;
  47. }
  48. Elementclasses.h
  49. #define PT_METH 167
  50.  
  51. class Element_METH: public Element
  52. {
  53. public:
  54. Element_METH();
  55. virtual ~Element_METH();
  56. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement