Class EventService
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.event.EventService
-
@Service public class EventService extends java.lang.ObjectEvent related utility methods. Created by andi on 25.03.17.
-
-
Constructor Summary
Constructors Constructor Description EventService()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)voidpostToHumanPlayer(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.
-
-
-
Method Detail
-
calculateSpouseDeath
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)
-
postToHumanPlayer
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)Post a message that will end up in the message queue.- Parameters:
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 message
-
-