Class BlockadeEngine
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.AbstractEngine
-
- ch.sahits.game.openpatrician.engine.sea.BlockadeEngine
-
@Lazy @Service @DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class) public class BlockadeEngine extends AbstractEngine
Engine handling the blockade.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Apr 14, 2016
-
-
Constructor Summary
Constructors Constructor Description BlockadeEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AbstractEngine>getChildren()Any engine may hold various child engines.voidhandleBlockadeConvoyReturns(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)voidhandleDailyUpdate(ch.sahits.game.event.data.PeriodicalDailyUpdate dayChange)voidhandleShipBreaksBlockade(ch.sahits.game.openpatrician.event.data.ShipNearingPortEvent event)voidinitializeNewBlockade(ch.sahits.game.openpatrician.model.city.ICity city)
-
-
-
Method Detail
-
getChildren
public java.util.List<AbstractEngine> getChildren()
Description copied from class:AbstractEngineAny engine may hold various child engines. This is the way to retrieve them. If there are no child engines, return an empty list. Subclasses have to implement this in the proper way.- Specified by:
getChildrenin classAbstractEngine- Returns:
- list of child engines.
-
initializeNewBlockade
public void initializeNewBlockade(ch.sahits.game.openpatrician.model.city.ICity city)
-
handleDailyUpdate
public void handleDailyUpdate(ch.sahits.game.event.data.PeriodicalDailyUpdate dayChange)
-
handleShipBreaksBlockade
public void handleShipBreaksBlockade(ch.sahits.game.openpatrician.event.data.ShipNearingPortEvent event)
-
handleBlockadeConvoyReturns
public void handleBlockadeConvoyReturns(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)
-
-