Class NextCourierPatrolStation


  • public class NextCourierPatrolStation
    extends ShipEntersPortEventListener
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Feb 16, 2014
    • Field Detail

      • player

        private final IPlayer player
      • deadline

        private final java.time.LocalDateTime deadline
      • date

        @Autowired
        private Date date
      • rnd

        @Autowired
        private java.util.Random rnd
      • clientEventBus

        @Autowired
        @Qualifier("clientEventBus")
        private com.google.common.eventbus.AsyncEventBus clientEventBus
      • locale

        @Autowired
        private Locale locale
      • messageSource

        @Autowired
        private org.springframework.context.MessageSource messageSource
    • Constructor Detail

      • NextCourierPatrolStation

        public NextCourierPatrolStation​(IShip ship,
                                        ICity city,
                                        CourierPatrolStateInternal state,
                                        IPlayer player,
                                        java.time.LocalDateTime deadline)
        Create the next patrol station listener. This listener adds itself to the event queue and removes the first city from the patrol state
        Parameters:
        ship - for which to construct the next patrol station
        city - of the next patrol station
        state - internal patrol state
        player - patroling player
        deadline - until when the patrol has to reach the city.