Class WaitTimeForShipArrival

  • Direct Known Subclasses:
    ShipArrivalForLoading

    public abstract class WaitTimeForShipArrival
    extends ch.sahits.game.openpatrician.event.handler.ShipArivalInPortEventListener
    Wait for until a defined time for the arrival of a ship in a city. If the time has passed this event listener unregisters itself from the queue.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Feb 20, 2013
    • Field Summary

      • Fields inherited from class ch.sahits.game.openpatrician.event.handler.ShipArivalInPortEventListener

        clientServerEventBus
    • Constructor Summary

      Constructors 
      Constructor Description
      WaitTimeForShipArrival​(ch.sahits.game.openpatrician.model.city.ICity city, ch.sahits.game.openpatrician.model.IPlayer player, java.time.LocalDateTime deadline)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ch.sahits.game.openpatrician.model.Date getDate()  
      void handleShipEntersPort​(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)  
      • Methods inherited from class ch.sahits.game.openpatrician.event.handler.ShipArivalInPortEventListener

        execute, getCity, getPlayer, getShip
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WaitTimeForShipArrival

        public WaitTimeForShipArrival​(ch.sahits.game.openpatrician.model.city.ICity city,
                                      ch.sahits.game.openpatrician.model.IPlayer player,
                                      java.time.LocalDateTime deadline)
    • Method Detail

      • getDate

        public ch.sahits.game.openpatrician.model.Date getDate()
      • handleShipEntersPort

        public void handleShipEntersPort​(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)
        Overrides:
        handleShipEntersPort in class ch.sahits.game.openpatrician.event.handler.ShipArivalInPortEventListener