@Service public class EventService extends Object
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private Random |
rnd |
| Constructor and Description |
|---|
EventService() |
| Modifier and Type | Method and Description |
|---|---|
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.dialog.IDialogState state,
ch.sahits.game.openpatrician.model.IPlayer player,
String messageKey,
Object... messageParams)
Post a message that will end up in the message queue.
|
@Autowired private Random rnd
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
public 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.dialog.IDialogState state,
ch.sahits.game.openpatrician.model.IPlayer player,
String messageKey,
Object... messageParams)
state - player - messageKey - messageParams - Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.