tiles.rc: move BURNBIT knowledge from source code to tiles.rc
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@743 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
cc4ba189ce
commit
c2cfeb540c
8 changed files with 44 additions and 38 deletions
|
@ -509,7 +509,7 @@ class MapScanner
|
|||
{
|
||||
for (int x = xpos-1; x <= xpos+1; x++)
|
||||
{
|
||||
city.setTile(x, y, (char)(base | BURNBIT | CONDBIT | (x == xpos && y == ypos ? BULLBIT : 0)));
|
||||
city.setTile(x, y, (char)(base | CONDBIT | (x == xpos && y == ypos ? BULLBIT : 0)));
|
||||
base++;
|
||||
}
|
||||
}
|
||||
|
@ -631,13 +631,13 @@ class MapScanner
|
|||
{
|
||||
if ((city.map[ypos-1][xpos+1] & LOMASK) == RADAR) {
|
||||
city.setTile(xpos+1,ypos-1, (char)
|
||||
(RADAR_ANIM + CONDBIT + BURNBIT)
|
||||
(RADAR_ANIM + CONDBIT)
|
||||
);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
city.setTile(xpos+1,ypos-1,(char)(RADAR + CONDBIT + BURNBIT));
|
||||
city.setTile(xpos+1,ypos-1,(char)(RADAR + CONDBIT));
|
||||
}
|
||||
|
||||
if (powerOn) {
|
||||
|
@ -759,7 +759,7 @@ class MapScanner
|
|||
{ //not rubble, radiactive, on fire or flooded
|
||||
|
||||
city.setTile(xx,yy,(char)
|
||||
(zoneBase+CONDBIT+BURNBIT)
|
||||
(zoneBase+CONDBIT)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -1080,7 +1080,7 @@ class MapScanner
|
|||
assert houseNumber >= 0 && houseNumber < 12;
|
||||
|
||||
assert city.testBounds(xx, yy);
|
||||
city.setTile(xx, yy, (char)((HOUSE + houseNumber) | BULLBIT | BURNBIT | CONDBIT));
|
||||
city.setTile(xx, yy, (char)((HOUSE + houseNumber) | BULLBIT | CONDBIT));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1207,7 +1207,7 @@ class MapScanner
|
|||
{
|
||||
// downgrade from full-size zone to 8 little houses
|
||||
|
||||
city.setTile(xpos, ypos, (char)(FREEZ | BULLBIT | BURNBIT | CONDBIT));
|
||||
city.setTile(xpos, ypos, (char)(FREEZ | BULLBIT | CONDBIT));
|
||||
for (int x = xpos-1; x <= xpos+1; x++)
|
||||
{
|
||||
for (int y = ypos-1; y <= ypos+1; y++)
|
||||
|
@ -1218,7 +1218,7 @@ class MapScanner
|
|||
{
|
||||
// pick a random small house
|
||||
int houseNumber = value * 3 + PRNG.nextInt(3);
|
||||
city.setTile(x, y, (char) ((HOUSE + houseNumber) | BULLBIT | BURNBIT | CONDBIT));
|
||||
city.setTile(x, y, (char) ((HOUSE + houseNumber) | BULLBIT | CONDBIT));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1243,7 +1243,7 @@ class MapScanner
|
|||
int loc = city.map[y][x] & LOMASK;
|
||||
if (loc >= LHTHR && loc <= HHTHR)
|
||||
{ //little house
|
||||
city.setTile(x, y, (char)((Brdr[z] + FREEZ - 4) | BULLBIT | BURNBIT | CONDBIT));
|
||||
city.setTile(x, y, (char)((Brdr[z] + FREEZ - 4) | BULLBIT | CONDBIT));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1342,7 +1342,7 @@ class MapScanner
|
|||
int tile = city.getTile(xpos+dx[z], ypos+dy[z]) & LOMASK;
|
||||
if (tile >= COALBASE && tile < COALBASE + 4*4) {
|
||||
city.setTile(xpos + dx[z], ypos + dy[z],
|
||||
(char) (SmTb[z] | CONDBIT | PWRBIT | BURNBIT)
|
||||
(char) (SmTb[z] | CONDBIT | PWRBIT)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -1374,7 +1374,7 @@ class MapScanner
|
|||
for (int x = 0; x < 4; x++, zoneBase++)
|
||||
{
|
||||
city.setTile(xpos - 1 + x, ypos - 1 + y,
|
||||
(char) (zoneBase | BURNBIT | CONDBIT | (x == 1 && y == 1 ? (PWRBIT) : 0)));
|
||||
(char) (zoneBase | CONDBIT | (x == 1 && y == 1 ? (PWRBIT) : 0)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue