diff options
| author | jacob1 <jfu614@gmail.com> | 2013-09-04 04:20:21 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-09-04 04:20:21 (GMT) |
| commit | 7d9fa1bfc7ae74ed04992a83662dd717d12112d8 (patch) | |
| tree | 29d9ab12d1e07a96d3ae08c1cee78821398bf0fc /src/simulation/elements/VRSG.cpp | |
| parent | 6c4f63be3b003f55360e690c7bac9d3dd536408f (diff) | |
| download | powder-7d9fa1bfc7ae74ed04992a83662dd717d12112d8.zip powder-7d9fa1bfc7ae74ed04992a83662dd717d12112d8.tar.gz | |
new element: VIRS (also solid and gas virus states). Cured by SOAP (CURE element was not added)
Diffstat (limited to 'src/simulation/elements/VRSG.cpp')
| -rw-r--r-- | src/simulation/elements/VRSG.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/simulation/elements/VRSG.cpp b/src/simulation/elements/VRSG.cpp new file mode 100644 index 0000000..8c699d7 --- /dev/null +++ b/src/simulation/elements/VRSG.cpp @@ -0,0 +1,49 @@ +#include "simulation/Elements.h" +//#TPT-Directive ElementClass Element_VRSG PT_VRSG 176 +Element_VRSG::Element_VRSG() +{ + Identifier = "DEFAULT_PT_VRSG"; + Name = "VRSG"; + Colour = PIXPACK(0xFE68FE); + MenuVisible = 0; + MenuSection = SC_GAS; + Enabled = 1; + + Advection = 1.0f; + AirDrag = 0.01f * CFDS; + AirLoss = 0.99f; + Loss = 0.30f; + Collision = -0.1f; + Gravity = 0.0f; + Diffusion = 0.75f; + HotAir = 0.000f * CFDS; + Falldown = 0; + + Flammable = 500; + Explosive = 0; + Meltable = 0; + Hardness = 0; + + Weight = 1; + + Temperature = 522.0f + 273.15f; + HeatConduct = 251; + Description = "Gas Virus. Turns everything it touches into virus."; + + State = ST_GAS; + Properties = TYPE_GAS|PROP_DEADLY; + + LowPressure = IPL; + LowPressureTransition = NT; + HighPressure = IPH; + HighPressureTransition = NT; + LowTemperature = 673.0f; + LowTemperatureTransition = PT_VIRS; + HighTemperature = ITH; + HighTemperatureTransition = NT; + + Update = &Element_VIRS::update; + +} + +Element_VRSG::~Element_VRSG() {} |
