Class WaitTimeForShipArrival
- java.lang.Object
-
- ch.sahits.game.openpatrician.event.handler.ShipArivalInPortEventListener
-
- ch.sahits.game.openpatrician.display.event.handler.impl.WaitTimeForShipArrival
-
- Direct Known Subclasses:
ShipArrivalForLoading
public abstract class WaitTimeForShipArrival extends ch.sahits.game.openpatrician.event.handler.ShipArivalInPortEventListenerWait 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
-
-
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.DategetDate()voidhandleShipEntersPort(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)
-
-
-
Method Detail
-
getDate
public ch.sahits.game.openpatrician.model.Date getDate()
-
handleShipEntersPort
public void handleShipEntersPort(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)
- Overrides:
handleShipEntersPortin classch.sahits.game.openpatrician.event.handler.ShipArivalInPortEventListener
-
-