public class OpponentsOrder
extends ch.sahits.game.openpatrician.model.event.TimedTask
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.IPlayer |
client |
private com.google.common.eventbus.AsyncEventBus |
clientEventBus |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private ch.sahits.game.openpatrician.model.Date |
date |
private EventHandlerFactory |
eventHandlerFactory |
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 ch.sahits.game.openpatrician.model.IPlayer |
opponent |
private ch.sahits.game.event.handler.TimedEventListener |
order |
private ch.sahits.game.openpatrician.model.IPlayer |
player |
private int |
premium |
| Constructor and Description |
|---|
OpponentsOrder(ch.sahits.game.openpatrician.model.IPlayer opponent,
ch.sahits.game.openpatrician.model.IPlayer client,
ch.sahits.game.openpatrician.model.IPlayer player,
int premium) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleShipAttack(ch.sahits.game.event.ShipAttackEvent event)
Handling ships attacks.
|
private void |
initializeEventBus() |
void |
run() |
private final ch.sahits.game.openpatrician.model.IPlayer opponent
private final ch.sahits.game.openpatrician.model.IPlayer client
private final ch.sahits.game.openpatrician.model.IPlayer player
private final int premium
@Autowired private ch.sahits.game.openpatrician.model.event.TimedUpdatableTaskList list
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired @Qualifier(value="clientEventBus") private com.google.common.eventbus.AsyncEventBus clientEventBus
@Autowired private EventHandlerFactory eventHandlerFactory
@Autowired private ch.sahits.game.openpatrician.model.Date date
@Autowired private ch.sahits.game.openpatrician.util.l10n.Locale locale
@Autowired private org.springframework.context.MessageSource messageSource
private ch.sahits.game.event.handler.TimedEventListener order
public OpponentsOrder(ch.sahits.game.openpatrician.model.IPlayer opponent,
ch.sahits.game.openpatrician.model.IPlayer client,
ch.sahits.game.openpatrician.model.IPlayer player,
int premium)
@PostConstruct private void initializeEventBus()
public void run()
public void handleShipAttack(ch.sahits.game.event.ShipAttackEvent event)
event - Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.