public class NextCourierPatrolStation
extends ch.sahits.game.openpatrician.event.handler.ShipEntersPortEventListener
| Constructor | Description |
|---|---|
NextCourierPatrolStation(ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.city.ICity city,
CourierPatrolStateInternal state,
ch.sahits.game.openpatrician.model.IPlayer player,
java.time.LocalDateTime deadline) |
Create the next patrol station listener.
|
| 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) |
public NextCourierPatrolStation(ch.sahits.game.openpatrician.model.ship.IShip ship,
ch.sahits.game.openpatrician.model.city.ICity city,
CourierPatrolStateInternal state,
ch.sahits.game.openpatrician.model.IPlayer player,
java.time.LocalDateTime deadline)
ship - for which to construct the next patrol stationcity - of the next patrol stationstate - internal patrol stateplayer - patroling playerdeadline - until when the patrol has to reach the city.public void handleShipEntersPort(ch.sahits.game.openpatrician.event.data.ShipEntersPortEvent event)
handleShipEntersPort in class ch.sahits.game.openpatrician.event.handler.ShipEntersPortEventListenerpublic boolean execute(ch.sahits.game.openpatrician.model.city.ICity city)
execute in class ch.sahits.game.openpatrician.event.handler.ShipEntersPortEventListenerCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.