public abstract class WaitTimeForShipArrivalInCity
extends ch.sahits.game.event.handler.ShipEntersPortEventListener
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.Date |
date |
private org.joda.time.DateTime |
deadline |
| Constructor and Description |
|---|
WaitTimeForShipArrivalInCity(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.ship.INavigableVessel ship,
org.joda.time.DateTime deadline) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Action that is taken when the time has run out.
|
void |
handleShipEntersPort(ch.sahits.game.event.data.ShipEntersPortEvent event)
Base implementation for the ship arival in a city before a deadline is passed.
|
private final org.joda.time.DateTime deadline
@Autowired private ch.sahits.game.openpatrician.model.Date date
public WaitTimeForShipArrivalInCity(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.ship.INavigableVessel ship,
org.joda.time.DateTime deadline)
public void handleShipEntersPort(ch.sahits.game.event.data.ShipEntersPortEvent event)
handleShipEntersPort in class ch.sahits.game.event.handler.ShipEntersPortEventListenerevent - public void destroy()
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.