Class 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 Detail

      • BlockadeEngine

        public BlockadeEngine()
    • Method Detail

      • getChildren

        public java.util.List<AbstractEngine> getChildren()
        Description copied from class: AbstractEngine
        Any 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:
        getChildren in class AbstractEngine
        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)