Class AttackListener
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.event.handler.impl.AttackListener
-
- All Implemented Interfaces:
IAttackListener
class AttackListener extends java.lang.Object implements IAttackListener
- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Feb 21, 2014
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.eventbus.AsyncEventBus
clientServerEventBus
private IShip
ship
private PatrolInternalState
state
-
Constructor Summary
Constructors Constructor Description AttackListener(IShip ship, PatrolInternalState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleShipAttack(ShipAttackEvent event)
private void
initializeEventBus()
void
unregisterEventBus()
-
-
-
Field Detail
-
ship
private final IShip ship
-
state
private final PatrolInternalState state
-
clientServerEventBus
@Autowired @Qualifier("serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
-
-
Constructor Detail
-
AttackListener
public AttackListener(IShip ship, PatrolInternalState state)
-
-
Method Detail
-
initializeEventBus
@PostConstruct private void initializeEventBus()
-
unregisterEventBus
@PreDestroy public void unregisterEventBus()
-
handleShipAttack
public void handleShipAttack(ShipAttackEvent event)
-
-