@Lazy @Service @DependentInitialisation(value=ch.sahits.game.openpatrician.util.StartNewGameBean.class) public class BlockadeEngine extends AbstractEngine
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.sea.BlockadeState |
blockadeState |
private com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
private org.springframework.context.ApplicationContext |
context |
private ch.sahits.game.openpatrician.model.Date |
date |
private ch.sahits.game.openpatrician.model.city.guild.GuildList |
guildList |
private GuildService |
guildService |
private MapService |
mapService |
private ch.sahits.game.openpatrician.model.ModelFactory |
modelFactory |
private ch.sahits.game.openpatrician.model.IModelTranslationService |
modelTranslationService |
private ch.sahits.game.openpatrician.model.PlayerList |
players |
private Random |
rnd |
private SeafaringService |
seafaringService |
private SeaFightService |
seafightService |
private ShipFactory |
shipFactory |
| Constructor and Description |
|---|
BlockadeEngine() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
createConvoy(ch.sahits.game.openpatrician.model.sea.IBlockade blockade,
ch.sahits.game.openpatrician.model.city.ICity city) |
private void |
destroy() |
(package private) void |
dissolveConvoy(ch.sahits.game.openpatrician.model.sea.IBlockade blockade,
ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.city.ICity blockadedCity) |
List<AbstractEngine> |
getChildren()
Any engine may hold various child engines.
|
void |
handleBlockadeConvoyReturns(ShipEntersPortEvent event) |
void |
handleDailyUpdate(PeriodicalDailyUpdate dayChange) |
void |
handleShipBreaksBlockade(ShipNearingPortEvent event) |
private void |
initialize() |
void |
initializeNewBlockade(ch.sahits.game.openpatrician.model.city.ICity city) |
@Autowired @Qualifier(value="serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
@Autowired private ch.sahits.game.openpatrician.model.sea.BlockadeState blockadeState
@Autowired private ShipFactory shipFactory
@Autowired private ch.sahits.game.openpatrician.model.Date date
@Autowired private Random rnd
@Autowired private org.springframework.context.ApplicationContext context
@Autowired private ch.sahits.game.openpatrician.model.PlayerList players
@Autowired private SeafaringService seafaringService
@Autowired private SeaFightService seafightService
@Autowired private ch.sahits.game.openpatrician.model.IModelTranslationService modelTranslationService
@Autowired private MapService mapService
@Autowired private ch.sahits.game.openpatrician.model.ModelFactory modelFactory
@Autowired private ch.sahits.game.openpatrician.model.city.guild.GuildList guildList
@Autowired private GuildService guildService
public List<AbstractEngine> getChildren()
AbstractEnginegetChildren in class AbstractEngine@PostConstruct private void initialize()
@PreDestroy private void destroy()
public void initializeNewBlockade(ch.sahits.game.openpatrician.model.city.ICity city)
public void handleDailyUpdate(PeriodicalDailyUpdate dayChange)
public void handleShipBreaksBlockade(ShipNearingPortEvent event)
public void handleBlockadeConvoyReturns(ShipEntersPortEvent event)
void dissolveConvoy(ch.sahits.game.openpatrician.model.sea.IBlockade blockade,
ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.city.ICity blockadedCity)
void createConvoy(ch.sahits.game.openpatrician.model.sea.IBlockade blockade,
ch.sahits.game.openpatrician.model.city.ICity city)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.