class AttackListener extends Object implements IAttackListener
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private ch.sahits.game.openpatrician.model.ship.IShip |
ship |
private PatrolInternalState |
state |
| Constructor and Description |
|---|
AttackListener(ch.sahits.game.openpatrician.model.ship.IShip ship,
PatrolInternalState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleShipAttack(ch.sahits.game.event.ShipAttackEvent event) |
private void |
initializeEventBus() |
private final ch.sahits.game.openpatrician.model.ship.IShip ship
private final PatrolInternalState state
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
public AttackListener(ch.sahits.game.openpatrician.model.ship.IShip ship,
PatrolInternalState state)
@PostConstruct private void initializeEventBus()
public void handleShipAttack(ch.sahits.game.event.ShipAttackEvent event)
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.