Class HumanPlayerEngine


  • public class HumanPlayerEngine
    extends AbstractEngine
    Engine handling automated tasks that are specific to a human player only.
    • Field Detail

      • clientServerEventBus

        @Autowired
        @Qualifier("serverClientEventBus")
        private com.google.common.eventbus.AsyncEventBus clientServerEventBus
      • shipService

        @Autowired
        private ShipService shipService
    • Constructor Detail

      • HumanPlayerEngine

        public HumanPlayerEngine()
    • Method Detail

      • init

        @PostConstruct
        private void init()
      • unregister

        @PreDestroy
        private void unregister()
      • 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.
      • getHumanPlayers

        java.util.List<IPlayer> getHumanPlayers()
      • handleShipAuctionFinished

        public void handleShipAuctionFinished​(ShipAuctionFinished event)
      • handleShipNotAuction

        public void handleShipNotAuction​(ShipNotAuctioned event)