public class AIPlayerEngine extends AbstractEngine
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.sea.BlockadeState |
blockadeState |
private BlockadeStrategy |
blockadeStrategy |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private ch.sahits.game.openpatrician.model.Date |
date |
private org.apache.logging.log4j.Logger |
logger |
private MapService |
mapService |
private ch.sahits.game.openpatrician.model.AIPlayerList |
players |
private SeafaringService |
seafaringService |
private ch.sahits.game.openpatrician.model.sea.TravellingVessels |
vessels |
| Constructor and Description |
|---|
AIPlayerEngine() |
| Modifier and Type | Method and Description |
|---|---|
List<AbstractEngine> |
getChildren()
Any engine may hold various child engines.
|
private void |
handleBlockadeMission(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city) |
void |
handleBlockadeStart(BlockadeShipRequestEvent event) |
void |
handleShipArrivesInCity(ShipEntersPortEvent event) |
void |
handleTradeStrategyStart(GraphInitialisationComplete event) |
private void |
init() |
private void |
initializeStrategyForVessel(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel ship) |
private final org.apache.logging.log4j.Logger logger
@Autowired private ch.sahits.game.openpatrician.model.AIPlayerList players
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired private ch.sahits.game.openpatrician.model.sea.BlockadeState blockadeState
@Autowired private BlockadeStrategy blockadeStrategy
@Autowired private SeafaringService seafaringService
@Autowired private ch.sahits.game.openpatrician.model.Date date
@Autowired private MapService mapService
@Autowired private ch.sahits.game.openpatrician.model.sea.TravellingVessels vessels
public List<AbstractEngine> getChildren()
AbstractEnginegetChildren in class AbstractEngine@PostConstruct private void init()
private void initializeStrategyForVessel(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel ship)
public void handleBlockadeStart(BlockadeShipRequestEvent event)
public void handleShipArrivesInCity(ShipEntersPortEvent event)
public void handleTradeStrategyStart(GraphInitialisationComplete event)
private void handleBlockadeMission(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.city.ICity city)
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.