Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions micropolis-java/src/micropolisj/engine/Micropolis.java
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@ void checkGrowth()
z = MicropolisMessage.POP_2K_REACHED;
}
if (z != null) {
sendMessage(z);
sendMessageAt(z, centerMassX, centerMassY);
}
}
lastCityPop = newPop;
Expand Down Expand Up @@ -2582,12 +2582,12 @@ void doMessages()
break;
case 35:
if (pollutionAverage > 60) { // FIXME, consider changing threshold to 80
sendMessage(MicropolisMessage.HIGH_POLLUTION);
sendMessageAt(MicropolisMessage.HIGH_POLLUTION, pollutionMaxLocationX, pollutionMaxLocationY);
}
break;
case 42:
if (crimeAverage > 100) {
sendMessage(MicropolisMessage.HIGH_CRIME);
sendMessageAt(MicropolisMessage.HIGH_CRIME, crimeMaxLocationX, crimeMaxLocationY);
}
break;
case 45:
Expand Down Expand Up @@ -2622,7 +2622,7 @@ void doMessages()
break;
case 63:
if (trafficAverage > 60) {
sendMessage(MicropolisMessage.HIGH_TRAFFIC);
sendMessageAt(MicropolisMessage.HIGH_TRAFFIC, trafficMaxLocationX, trafficMaxLocationY);
}
break;
default:
Expand Down
2 changes: 2 additions & 0 deletions micropolis-java/src/micropolisj/engine/MicropolisMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public enum MicropolisMessage
POP_500K_REACHED.useNotificationPane = true;
HIGH_CRIME.useNotificationPane = true;
HIGH_POLLUTION.useNotificationPane = true;
HIGH_TRAFFIC.useNotificationPane = true;

// location-specific
FLOOD_REPORT.useNotificationPane = true;
Expand All @@ -87,5 +88,6 @@ public enum MicropolisMessage
SHIPWRECK_REPORT.useNotificationPane = true;
COPTER_CRASH_REPORT.useNotificationPane = true;
PLANECRASH_REPORT.useNotificationPane = true;
FIREBOMBING_REPORT.useNotificationPane = true;
}
}