Class WaitForShipArrival

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.product.ISpecialMission, ch.sahits.game.openpatrician.model.product.ITradeMissionData

    public class WaitForShipArrival
    extends java.lang.Object
    implements ch.sahits.game.openpatrician.model.product.ISpecialMission
    Special mission where ship A waits on arrival of ship B in a city.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2018 Created on Sep 23, 2018
    • Constructor Summary

      Constructors 
      Constructor Description
      WaitForShipArrival​(ch.sahits.game.openpatrician.model.ship.INavigableVessel waitingVessel, ch.sahits.game.openpatrician.model.ship.INavigableVessel waitingOnVessel, ch.sahits.game.openpatrician.model.city.ICity waitingIn, java.lang.Runnable actionUponArrival, boolean waitingShipArrived)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleShipArrivesInCity​(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)  
      • Methods inherited from class java.lang.Object

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

      • WaitForShipArrival

        public WaitForShipArrival​(ch.sahits.game.openpatrician.model.ship.INavigableVessel waitingVessel,
                                  ch.sahits.game.openpatrician.model.ship.INavigableVessel waitingOnVessel,
                                  ch.sahits.game.openpatrician.model.city.ICity waitingIn,
                                  java.lang.Runnable actionUponArrival,
                                  boolean waitingShipArrived)
    • Method Detail

      • handleShipArrivesInCity

        public void handleShipArrivesInCity​(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)