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/VRSS.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/VRSS.cpp')
| -rw-r--r-- | src/simulation/elements/VRSS.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/simulation/elements/VRSS.cpp b/src/simulation/elements/VRSS.cpp new file mode 100644 index 0000000..903a5f7 --- /dev/null +++ b/src/simulation/elements/VRSS.cpp @@ -0,0 +1,49 @@ +#include "simulation/Elements.h" +//#TPT-Directive ElementClass Element_VRSS PT_VRSS 175 +Element_VRSS::Element_VRSS() +{ + Identifier = "DEFAULT_PT_VRSS"; + Name = "VRSS"; + Colour = PIXPACK(0xD408CD); + MenuVisible = 0; + MenuSection = SC_SOLIDS; + Enabled = 1; + + Advection = 0.0f; + AirDrag = 0.00f * CFDS; + AirLoss = 0.90f; + Loss = 0.00f; + Collision = 0.0f; + Gravity = 0.0f; + Diffusion = 0.00f; + HotAir = 0.000f * CFDS; + Falldown = 0; + + Flammable = 5; + Explosive = 0; + Meltable = 0; + Hardness = 1; + + Weight = 100; + + Temperature = R_TEMP+ 273.15f; + HeatConduct = 251; + Description = "Solid Virus. Turns everything it touches into virus."; + + State = ST_SOLID; + Properties = TYPE_SOLID|PROP_DEADLY; + + LowPressure = IPL; + LowPressureTransition = NT; + HighPressure = IPH; + HighPressureTransition = NT; + LowTemperature = ITL; + LowTemperatureTransition = NT; + HighTemperature = 305.0f; + HighTemperatureTransition = PT_VIRS; + + Update = &Element_VIRS::update; + +} + +Element_VRSS::~Element_VRSS() {} |
