@Service
public class EventService
extends java.lang.Object
| Constructor | Description |
|---|---|
EventService() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<ch.sahits.game.openpatrician.model.personal.ISpouseData> |
calculateSpouseDeath(ch.sahits.game.openpatrician.model.IPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city) |
|
void |
postToHumanPlayer(ch.sahits.game.openpatrician.model.ui.IDialogState state,
ch.sahits.game.openpatrician.model.IPlayer player,
java.lang.String messageKey,
java.lang.Object... messageParams) |
Post a message that will end up in the message queue.
|
public java.util.Optional<ch.sahits.game.openpatrician.model.personal.ISpouseData> calculateSpouseDeath(ch.sahits.game.openpatrician.model.IPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city)
public void postToHumanPlayer(ch.sahits.game.openpatrician.model.ui.IDialogState state,
ch.sahits.game.openpatrician.model.IPlayer player,
java.lang.String messageKey,
java.lang.Object... messageParams)
state - dialog state for the display messageplayer - player to whom the message is postedmessageKey - text key of the display state messagemessageParams - message parameters for the messageCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.