public class SinkConcurrentsShipOrder
extends ch.sahits.game.event.handler.TimedEventListener
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientEventBus |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList |
list |
private ch.sahits.game.openpatrician.util.l10n.Locale |
locale |
private org.springframework.context.MessageSource |
messageSource |
private int |
offeredTime |
private ch.sahits.game.openpatrician.model.IPlayer |
opponent |
private ch.sahits.game.openpatrician.model.IPlayer |
player |
private int |
premium |
private ch.sahits.game.openpatrician.model.event.TimedTask |
reconciliation |
| Constructor and Description |
|---|
SinkConcurrentsShipOrder(ch.sahits.game.openpatrician.model.IPlayer opponent,
ch.sahits.game.openpatrician.model.IPlayer player,
int offerdTime,
int premium,
ch.sahits.game.openpatrician.model.event.TimedTask reconciliation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute() |
void |
handleShipAttack(ch.sahits.game.event.data.ShipAttackEvent event)
Handle the ships attak
|
private void |
initialize() |
private void |
unregisterEventBus() |
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired @Qualifier(value="clientEventBus") private com.google.common.eventbus.AsyncEventBus clientEventBus
@Autowired private ch.sahits.game.openpatrician.util.l10n.Locale locale
@Autowired private org.springframework.context.MessageSource messageSource
private final ch.sahits.game.openpatrician.model.IPlayer opponent
private final ch.sahits.game.openpatrician.model.IPlayer player
private final int premium
private final ch.sahits.game.openpatrician.model.event.TimedTask reconciliation
private final int offeredTime
@Autowired private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList list
public SinkConcurrentsShipOrder(ch.sahits.game.openpatrician.model.IPlayer opponent,
ch.sahits.game.openpatrician.model.IPlayer player,
int offerdTime,
int premium,
ch.sahits.game.openpatrician.model.event.TimedTask reconciliation)
@PostConstruct private void initialize()
@PreDestroy private void unregisterEventBus()
public void handleShipAttack(ch.sahits.game.event.data.ShipAttackEvent event)
event - public boolean execute()
execute in class ch.sahits.game.event.handler.TimedEventListenerCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.