summaryrefslogtreecommitdiff
path: root/src/simulation/SimulationData.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-12 12:21:04 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-12 12:21:04 (GMT)
commit16d3895e9c054e908ca8b230719f4294e824a4a2 (patch)
tree8246b0ebc3b94ed05427b8ffa5ea1e1764c7a37a /src/simulation/SimulationData.cpp
parent1c993435efc7fe6702d21c892e1d4dd8347d2e7f (diff)
downloadpowder-16d3895e9c054e908ca8b230719f4294e824a4a2.zip
powder-16d3895e9c054e908ca8b230719f4294e824a4a2.tar.gz
Redo Wall IDs
Diffstat (limited to 'src/simulation/SimulationData.cpp')
-rw-r--r--src/simulation/SimulationData.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/simulation/SimulationData.cpp b/src/simulation/SimulationData.cpp
index 60def19..fd0c4a5 100644
--- a/src/simulation/SimulationData.cpp
+++ b/src/simulation/SimulationData.cpp
@@ -132,35 +132,26 @@ wall_type * LoadWalls(int & wallCount)
{
wall_type wtypes[] =
{
+ {PIXPACK(0x808080), PIXPACK(0x000000), 0, "Erases walls."},
{PIXPACK(0xC0C0C0), PIXPACK(0x101010), 0, "Wall. Indestructible. Blocks everything. Conductive."},
{PIXPACK(0x808080), PIXPACK(0x808080), 0, "E-Wall. Becomes transparent when electricity is connected."},
{PIXPACK(0xFF8080), PIXPACK(0xFF2008), 1, "Detector. Generates electricity when a particle is inside."},
{PIXPACK(0x808080), PIXPACK(0x000000), 0, "Streamline. Set start point of a streamline."},
- {PIXPACK(0x808080), PIXPACK(0x000000), 0, "Sign. Click on a sign to edit it or anywhere else to place a new one."},
{PIXPACK(0x8080FF), PIXPACK(0x000000), 1, "Fan. Accelerates air. Use line tool to set direction and strength."},
{PIXPACK(0xC0C0C0), PIXPACK(0x101010), 2, "Wall. Blocks most particles but lets liquids through. Conductive."},
{PIXPACK(0x808080), PIXPACK(0x000000), 1, "Wall. Absorbs particles but lets air currents through."},
- {PIXPACK(0x808080), PIXPACK(0x000000), 0, "Erases walls."},
{PIXPACK(0x808080), PIXPACK(0x000000), 3, "Wall. Indestructible. Blocks everything."},
{PIXPACK(0x3C3C3C), PIXPACK(0x000000), 1, "Wall. Indestructible. Blocks particles, allows air"},
{PIXPACK(0x575757), PIXPACK(0x000000), 1, "Wall. Indestructible. Blocks liquids and gasses, allows powders"},
{PIXPACK(0xFFFF22), PIXPACK(0x101010), 2, "Conductor, allows particles, conducts electricity"},
{PIXPACK(0x242424), PIXPACK(0x101010), 0, "E-Hole, absorbs particles, release them when powered"},
- {PIXPACK(0xFFFFFF), PIXPACK(0x000000), -1, "Air, creates airflow and pressure"},
- {PIXPACK(0xFFBB00), PIXPACK(0x000000), -1, "Heats the targetted element."},
- {PIXPACK(0x00BBFF), PIXPACK(0x000000), -1, "Cools the targetted element."},
- {PIXPACK(0x303030), PIXPACK(0x000000), -1, "Vacuum, reduces air pressure."},
{PIXPACK(0x579777), PIXPACK(0x000000), 1, "Wall. Indestructible. Blocks liquids and solids, allows gasses"},
- {PIXPACK(0x000000), PIXPACK(0x000000), -1, "Drag tool"},
{PIXPACK(0xFFEE00), PIXPACK(0xAA9900), 4, "Gravity wall"},
- {PIXPACK(0x0000BB), PIXPACK(0x000000), -1, "Postive gravity tool."},
- {PIXPACK(0x000099), PIXPACK(0x000000), -1, "Negative gravity tool."},
{PIXPACK(0xFFAA00), PIXPACK(0xAA5500), 4, "Energy wall, allows only energy type particles to pass"},
- {PIXPACK(0xFFAA00), PIXPACK(0xAA5500), -1, "Property edit tool"},
};
- wallCount = SC_TOTAL;
- wall_type * wtypesT = (wall_type*)malloc(SC_TOTAL*sizeof(wall_type));
- memcpy(wtypesT, wtypes, SC_TOTAL*sizeof(wall_type));
+ wallCount = UI_WALLCOUNT;
+ wall_type * wtypesT = (wall_type*)malloc(UI_WALLCOUNT*sizeof(wall_type));
+ memcpy(wtypesT, wtypes, UI_WALLCOUNT*sizeof(wall_type));
return wtypesT;
}