refactor: remove isPic argument from cityMessage() notification
Have the decision of whether to show the message in the notification pane be determined by the message type itself, rather than being decided by the sender of the message. git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@859 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
736754a5ab
commit
b18b51d08e
7 changed files with 48 additions and 32 deletions
|
@ -1540,11 +1540,11 @@ public class MainWindow extends JFrame
|
|||
}
|
||||
|
||||
//implements Micropolis.Listener
|
||||
public void cityMessage(MicropolisMessage m, CityLocation p, boolean pictureMessage)
|
||||
public void cityMessage(MicropolisMessage m, CityLocation p)
|
||||
{
|
||||
messagesPane.appendCityMessage(m);
|
||||
|
||||
if (pictureMessage && p != null)
|
||||
if (m.useNotificationPane && p != null)
|
||||
{
|
||||
notificationPane.showMessage(engine, m, p.x, p.y);
|
||||
}
|
||||
|
|
Reference in a new issue