Class MapLocationDetector

    • Field Detail

      • clientServerEventBus

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

        @Autowired
        @Qualifier("syncServerClientEventBus")
        private com.google.common.eventbus.EventBus syncServerClientEventBus
      • timerEventBus

        @Autowired
        @Qualifier("timerEventBus")
        private com.google.common.eventbus.AsyncEventBus timerEventBus
      • date

        @Autowired
        private Date date
      • map

        @Autowired
        private IMap map
      • rnd

        @Autowired
        private java.util.Random rnd
      • shipsUpdated

        private boolean shipsUpdated
    • Constructor Detail

      • MapLocationDetector

        public MapLocationDetector()
    • Method Detail

      • init

        @PostConstruct
        private void init()
      • unregister

        @PreDestroy
        private void unregister()
      • handleShipLocationUpdate

        void handleShipLocationUpdate()
      • checkShipLeaving

        public void checkShipLeaving​(ClockTick tick)
      • removeDefeatedShips

        void removeDefeatedShips​(IConvoy ship,
                                 int survivingShips)