261 if (lastClass != newClass) {
392 callback->sendMessage(
this, callbackVal, messageIndex, x, y, picture, important);
404 assert(mesgNum >= 0);
439 makeSound(
"city",
"ExplosionHigh", x, y);
459 callback->autoGoto(
this, callbackVal, x, y, message);
466 callback->didLoseGame(
this, callbackVal);
473 callback->didWinGame(
this, callbackVal);
void doScenarioScore(Scenario type)
short stadiumPop
Number of stadiums.
short indZonePop
Number of industrial zones.
Scenario scoreType
The type of score table to use.
Scenario scenario
Scenario being played.
short poweredZoneCount
Number of powered tiles in all zone.
CityClass getCityClass(Quad cityPop)
short unpoweredZoneCount
Number of unpowered tiles in all zones.
short getRandom(short range)
Quad cityPopLast
Population of last city class check.
void doAutoGoto(short x, short y, const std::string &message)
short scoreWait
Time to wait before computing the score.
short resZonePop
Number of residential zones.
bool indCap
Block industrial growth.
bool resCap
Block residential growth.
void doMakeSound(int mesgNum, int x, int y)
void sendMessage(short Mnum, short x=NOWHERE, short y=NOWHERE, bool picture=false, bool important=false)
void makeSound(const std::string &channel, const std::string &sound, int x=-1, int y=-1)
short categoryLast
City class of last city class check.
bool comCap
Block commercial growth.
CityClass cityClass
City class, affected by city population.
short comZonePop
Number of commercial zones.
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)
@ CC_CAPITAL
Capital, > 50000 citizens.
@ CC_MEGALOPOLIS
Megalopolis, > 500000 citizens.
@ CC_METROPOLIS
Metropolis, > 100000 citizens.
@ CC_CITY
City, > 10000 citizens.
@ CC_TOWN
Town, > 2000 citizens.
static const int MAX_FIRE_STATION_EFFECT
static const int MAX_ROAD_EFFECT
static const int MAX_POLICE_STATION_EFFECT
Defines string identification numbers for texts used in the Micropolis game engine.
@ MESSAGE_TAX_TOO_HIGH
Citizens upset. The tax rate is too high.
@ MESSAGE_SCENARIO_WON
You won the scenario.
@ MESSAGE_FIRE_REPORTED
20: Fire reported !
@ MESSAGE_SHIP_CRASHED
25: Shipwreck reported !
@ MESSAGE_REACHED_MEGALOPOLIS
Population has reached 500,000.
@ MESSAGE_PLANE_CRASHED
A plane has crashed !
@ MESSAGE_RIOTS_REPORTED
They're rioting in the streets !!
@ MESSAGE_SCENARIO_LOST
You lose the scenario.
@ MESSAGE_TRAIN_CRASHED
A train crashed !
@ MESSAGE_NEED_MORE_RAILS
5: Inadequate rail system.
@ MESSAGE_BLACKOUTS_REPORTED
15: Blackouts reported. Check power map.
@ MESSAGE_ROAD_NEEDS_FUNDING
Roads deteriorating, due to lack of funds.
@ MESSAGE_NEED_MORE_INDUSTRIAL
More industrial zones needed.
@ MESSAGE_HELICOPTER_CRASHED
A helicopter crashed !
@ MESSAGE_NUCLEAR_MELTDOWN
A Nuclear Meltdown has occurred !!!
@ MESSAGE_MONSTER_SIGHTED
A Monster has been sighted !!
@ MESSAGE_REACHED_TOWN
35: Population has reached 2,000.
@ MESSAGE_REACHED_METROPOLIS
Population has reached 100,000.
@ MESSAGE_NEED_MORE_ROADS
More roads required.
@ MESSAGE_TORNADO_SIGHTED
Tornado reported !!
@ MESSAGE_NEED_AIRPORT
Commerce requires an Airport.
@ MESSAGE_POLICE_NEEDS_FUNDING
Police departments need funding.
@ MESSAGE_NEED_POLICE_STATION
Citizens demand a Police Department.
@ MESSAGE_HIGH_CRIME
Crime very high.
@ MESSAGE_REACHED_CITY
Population has reached 10,000.
@ MESSAGE_REACHED_CAPITAL
Population has reached 50,000.
@ MESSAGE_FIREBOMBING
30: Firebombing reported !
@ MESSAGE_NEED_FIRE_STATION
Citizens demand a Fire Department.
@ MESSAGE_NEED_ELECTRICITY
Build a Power Plant.
@ MESSAGE_NEED_MORE_COMMERCIAL
More commercial zones needed.
@ MESSAGE_NEED_SEAPORT
Industry requires a Sea Port.
@ MESSAGE_FIRE_STATION_NEEDS_FUNDING
Fire departments need funding.
@ MESSAGE_HIGH_POLLUTION
10: Pollution very high.
@ MESSAGE_NEED_STADIUM
Residents demand a Stadium.
@ MESSAGE_TRAFFIC_JAMS
Frequent traffic jams reported.
@ MESSAGE_EARTHQUAKE
Major earthquake reported !!!
@ MESSAGE_NEED_MORE_RESIDENTIAL
More residential zones needed.