summaryrefslogtreecommitdiff
path: root/src/simulation/elements/FIGH.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-03-14 11:30:35 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-03-14 11:30:35 (GMT)
commit9ab70756af4fb3f0f9c4e287f1b30e0897a19741 (patch)
treebcdeaecbe71f0152e9a9c9b81ee65e4aa1f717ec /src/simulation/elements/FIGH.cpp
parent9479b7f3300658156c467980c28d3436a728bc0c (diff)
parent10e104f3f51ed7de80419e2eba0fbbad457aa528 (diff)
downloadpowder-9ab70756af4fb3f0f9c4e287f1b30e0897a19741.zip
powder-9ab70756af4fb3f0f9c4e287f1b30e0897a19741.tar.gz
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/simulation/elements/FIGH.cpp')
-rw-r--r--src/simulation/elements/FIGH.cpp90
1 files changed, 45 insertions, 45 deletions
diff --git a/src/simulation/elements/FIGH.cpp b/src/simulation/elements/FIGH.cpp
index e1072f2..146c3db 100644
--- a/src/simulation/elements/FIGH.cpp
+++ b/src/simulation/elements/FIGH.cpp
@@ -2,48 +2,48 @@
//#TPT-Directive ElementClass Element_FIGH PT_FIGH 158
Element_FIGH::Element_FIGH()
{
- Identifier = "DEFAULT_PT_FIGH";
- Name = "FIGH";
- Colour = PIXPACK(0xFFE0A0);
- MenuVisible = 1;
- MenuSection = SC_SPECIAL;
- Enabled = 1;
-
- Advection = 0.5f;
- AirDrag = 0.00f * CFDS;
- AirLoss = 0.2f;
- Loss = 1.0f;
- Collision = 0.0f;
- Gravity = 0.0f;
- Diffusion = 0.0f;
- HotAir = 0.00f * CFDS;
- Falldown = 0;
-
- Flammable = 0;
- Explosive = 0;
- Meltable = 0;
- Hardness = 0;
-
- Weight = 50;
-
- Temperature = R_TEMP+14.6f+273.15f;
- HeatConduct = 0;
- Description = "Fighter. Tries to kill stickmen.";
-
- State = ST_NONE;
- Properties = 0;
-
- LowPressure = IPL;
- LowPressureTransition = NT;
- HighPressure = IPH;
- HighPressureTransition = NT;
- LowTemperature = ITL;
- LowTemperatureTransition = NT;
- HighTemperature = 620.0f;
- HighTemperatureTransition = PT_FIRE;
-
- Update = &Element_FIGH::update;
- Graphics = &Element_STKM::graphics;
+ Identifier = "DEFAULT_PT_FIGH";
+ Name = "FIGH";
+ Colour = PIXPACK(0xFFE0A0);
+ MenuVisible = 1;
+ MenuSection = SC_SPECIAL;
+ Enabled = 1;
+
+ Advection = 0.5f;
+ AirDrag = 0.00f * CFDS;
+ AirLoss = 0.2f;
+ Loss = 1.0f;
+ Collision = 0.0f;
+ Gravity = 0.0f;
+ Diffusion = 0.0f;
+ HotAir = 0.00f * CFDS;
+ Falldown = 0;
+
+ Flammable = 0;
+ Explosive = 0;
+ Meltable = 0;
+ Hardness = 0;
+
+ Weight = 50;
+
+ Temperature = R_TEMP+14.6f+273.15f;
+ HeatConduct = 0;
+ Description = "Fighter. Tries to kill stickmen.";
+
+ State = ST_NONE;
+ Properties = 0;
+
+ LowPressure = IPL;
+ LowPressureTransition = NT;
+ HighPressure = IPH;
+ HighPressureTransition = NT;
+ LowTemperature = ITL;
+ LowTemperatureTransition = NT;
+ HighTemperature = 620.0f;
+ HighTemperatureTransition = PT_FIRE;
+
+ Update = &Element_FIGH::update;
+ Graphics = &Element_STKM::graphics;
}
//#TPT-Directive ElementHeader Element_FIGH static int update(UPDATE_FUNC_ARGS)
@@ -59,7 +59,7 @@ int Element_FIGH::update(UPDATE_FUNC_ARGS)
if (sim->player2.spwn)
{
if (sim->player.spwn && (pow((float)sim->player.legs[2]-x, 2) + pow((float)sim->player.legs[3]-y, 2))<=
- (pow((float)sim->player2.legs[2]-x, 2) + pow((float)sim->player2.legs[3]-y, 2)))
+ (pow((float)sim->player2.legs[2]-x, 2) + pow((float)sim->player2.legs[3]-y, 2)))
{
tarx = (unsigned int)sim->player.legs[2];
tary = (unsigned int)sim->player.legs[3];
@@ -74,8 +74,8 @@ int Element_FIGH::update(UPDATE_FUNC_ARGS)
else if (sim->player.spwn)
{
tarx = (unsigned int)sim->player.legs[2];
- tary = (unsigned int)sim->player.legs[3];
- parts[i].tmp2 = 1;
+ tary = (unsigned int)sim->player.legs[3];
+ parts[i].tmp2 = 1;
}
switch (parts[i].tmp2)