Class ShipArrivalForLoading


  • public class ShipArrivalForLoading
    extends WaitTimeForShipArrival
    Event handler for a ship arrival for loading of wares for someone else.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Feb 16, 2014
    • Field Summary

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

        clientServerEventBus
    • Constructor Summary

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

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

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

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

      • ShipArrivalForLoading

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

      • execute

        public boolean execute()
        Specified by:
        execute in class ch.sahits.game.openpatrician.event.handler.ShipArivalInPortEventListener