Class UnloadOnArrival


  • public class UnloadOnArrival
    extends ch.sahits.game.openpatrician.event.handler.ShipEntersPortEventListener
    Unload the anonymous ware upon arrival in the city.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 20, 2014
    • Field Summary

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

        clientServerEventBus
    • Constructor Summary

      Constructors 
      Constructor Description
      UnloadOnArrival​(ch.sahits.game.openpatrician.model.ship.IShip ship, ch.sahits.game.openpatrician.model.city.ICity city, int loaded)  
    • Method Summary

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

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

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

      • UnloadOnArrival

        public UnloadOnArrival​(ch.sahits.game.openpatrician.model.ship.IShip ship,
                               ch.sahits.game.openpatrician.model.city.ICity city,
                               int loaded)
    • Method Detail

      • execute

        public boolean execute​(ch.sahits.game.openpatrician.model.city.ICity city)
        Specified by:
        execute in class ch.sahits.game.openpatrician.event.handler.ShipEntersPortEventListener
      • handleShipEntersPort

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