cleanup: rename fireZone to killZone

since the function is not about setting fire to a zone,
rather it is about nullifying the ability of the zone

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@568 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-02-20 02:05:04 +00:00
parent 1da609a5ce
commit 89d6839101
4 changed files with 4 additions and 11 deletions

7
TODO
View file

@ -17,10 +17,6 @@ Finances-
Budget dialog-
*Press escape to close
Coal powerplant-
*When third tile of second row is on fire, something appears to revert it to
the animated smoke stack.
On Game Load-
*All zones are unpowered for the first several ticks. I'd imagine there
are similar problems with the landValueMap, pollutionMap, tfDensity,
@ -39,6 +35,3 @@ Disasters-
City size notifications-
*Pause and pop up a message the first time the city reaches 2000, 10000,
50000, etc. people.
Code janitor-
*Rename fireZone() to killZone()... (I think that name might be better description.)

View file

@ -193,7 +193,7 @@ class MapScanner
int c = city.map[ytem][xtem];
if ((c & BURNBIT) != 0) {
if ((c & ZONEBIT) != 0) {
city.fireZone(xtem, ytem, c);
city.killZone(xtem, ytem, c);
if ((c & LOMASK) > IZB) { //explode
city.makeExplosion(xtem, ytem);
}
@ -235,7 +235,7 @@ class MapScanner
(t >= WOODS5 && t < FLOOD))
{
if ((c & ZONEBIT) != 0) {
city.fireZone(xx, yy, c);
city.killZone(xx, yy, c);
}
city.setTile(xx, yy, (char)(FLOOD + PRNG.nextInt(3)));
}

View file

@ -2361,7 +2361,7 @@ public class Micropolis
* since otherwise the user would no longer have a way of destroying
* the zone.
*/
void fireZone(int xpos, int ypos, int zoneTile)
void killZone(int xpos, int ypos, int zoneTile)
{
rateOGMem[ypos/8][xpos/8] -= 20;

View file

@ -183,7 +183,7 @@ public abstract class Sprite
return; //cannot destroy it
}
if ((z & ZONEBIT) != 0) {
city.fireZone(xpos, ypos, z);
city.killZone(xpos, ypos, z);
if (t > RZB) {
city.makeExplosion(xpos, ypos);
}