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.
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.eventbus.AsyncEventBusclientServerEventBusprivate java.util.Randomrnd
-
Constructor Summary
Constructors Constructor Description EventService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ISpouseData>calculateSpouseDeath(IPlayer player, ICity city)voidpostToHumanPlayer(IDialogState state, 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<ISpouseData> calculateSpouseDeath(IPlayer player, ICity city)
-
postToHumanPlayer
public void postToHumanPlayer(IDialogState state, 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
-
-