@Lazy @Service @DependentInitialisation(value=ch.sahits.game.openpatrician.util.StartNewGameBean.class) public class ReputationEngine extends AbstractEngine
| Modifier and Type | Field and Description |
|---|---|
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private ch.sahits.game.openpatrician.model.map.IMap |
map |
private ch.sahits.game.openpatrician.model.people.impl.SeaPiratesState |
piratesState |
| Constructor and Description |
|---|
ReputationEngine() |
| Modifier and Type | Method and Description |
|---|---|
private void |
destroy() |
List<AbstractEngine> |
getChildren()
Any engine may hold various child engines.
|
void |
handlePirateDefeated(ShipAttackEvent event) |
void |
handlePirateDefeated(ShipDefenseEvent event) |
private void |
initialize() |
private void |
updateReputationDueToPirateDefeat(ch.sahits.game.openpatrician.model.ship.INavigableVessel pirateVessel,
ch.sahits.game.openpatrician.model.ship.INavigableVessel playerVessel) |
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired private ch.sahits.game.openpatrician.model.people.impl.SeaPiratesState piratesState
@Autowired private ch.sahits.game.openpatrician.model.map.IMap map
public List<AbstractEngine> getChildren()
AbstractEnginegetChildren in class AbstractEngine@PostConstruct private void initialize()
@PreDestroy private void destroy()
public void handlePirateDefeated(ShipAttackEvent event)
public void handlePirateDefeated(ShipDefenseEvent event)
private void updateReputationDueToPirateDefeat(ch.sahits.game.openpatrician.model.ship.INavigableVessel pirateVessel,
ch.sahits.game.openpatrician.model.ship.INavigableVessel playerVessel)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.