95 static const short DisChance[3] = {
221 for (x = 0; x < (
WORLD_W - 1); x++) {
222 for (y = 0; y < (
WORLD_H - 1); y++) {
267 for (z = 0; z < strength; z++) {
273 if ((z & 0x3) != 0) {
308 for (t = 0; t < 40; t++) {
348 static const short Dx[4] = { 0, 1, 0, -1 };
349 static const short Dy[4] = { -1, 0, 1, 0 };
353 for (z = 0; z < 300; z++) {
359 for (t = 0; t < 4; t++) {
387 static const short Dx[4] = { 0, 1, 0, -1 };
388 static const short Dy[4] = { -1, 0, 1, 0 };
392 for (
int z = 0; z < 4; z++) {
394 int xx = pos.
posX + Dx[z];
395 int yy = pos.
posY + Dy[z];
401 || (t >= WOODS5 && t < FLOOD)) {
void doMeltdown(const Position &pos)
GameLevel gameLevel
Difficulty level of the game (0..2)
void makeExplosion(int x, int y)
short cityCenterY
Y coordinate of city center.
short getRandom(short range)
bool enableDisasters
Enable disasters.
void fireZone(const Position &pos, MapValue ch)
short disasterWait
Count-down timer for the disaster.
short cityCenterX
X coordinate of city center.
unsigned short * map[WORLD_W]
void sendMessage(short Mnum, short x=NOWHERE, short y=NOWHERE, bool picture=false, bool important=false)
Scenario disasterEvent
The disaster for which a count-down is running.
static bool testBounds(int wx, int wy)
void doFlood(const Position &pos)
void doEarthquake(int strength)
int posY
Vertical coordnate of the position.
int posX
Horizontal coordinate of the position.
Header file for Micropolis game engine.
@ SC_TOKYO
Tokyo (scary monster)
@ SC_NONE
No scenario (free playing)
@ SC_BOSTON
Boston (nuclear meltdown)
@ SC_SAN_FRANCISCO
San francisco (earthquake)
@ SC_HAMBURG
Hamburg (fire bombs)
@ SC_DULLSVILLE
Dullsville (boredom)
@ SC_DETROIT
Detroit (crime)
@ WATER_HIGH
Last water tile (inclusive)
@ LASTZONE
Also last tile nuclear power plant.
@ NUCLEAR
'Center' tile nuclear power plant.
@ LEVEL_EASY
Simple game level.
@ LEVEL_LAST
Last game level value.
@ LEVEL_COUNT
Number of game levels.
@ MESSAGE_FIRE_REPORTED
20: Fire reported !
@ MESSAGE_FIREBOMBING
30: Firebombing reported !
@ MESSAGE_FLOODING_REPORTED
Flooding reported !!
@ MESSAGE_EARTHQUAKE
Major earthquake reported !!!