Class TravelToTimedTask
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.event.TimedTask
-
- ch.sahits.game.openpatrician.display.event.task.TravelToTimedTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class TravelToTimedTask extends TimedTask
Timed task for delaysed travel to events triggered from the sea map. Created by andi on 26.03.17.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Optional<ICity>
city
private com.google.common.eventbus.AsyncEventBus
clientEventBus
private Date
date
private javafx.geometry.Point2D
destination
private INavigableVessel
vessel
-
Constructor Summary
Constructors Constructor Description TravelToTimedTask(javafx.geometry.Point2D destination, INavigableVessel vessel, java.util.Optional<ICity> city)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
init()
void
run()
java.lang.String
toString()
-
-
-
Field Detail
-
date
@Autowired private Date date
-
clientEventBus
@Autowired @Qualifier("clientEventBus") private com.google.common.eventbus.AsyncEventBus clientEventBus
-
destination
private javafx.geometry.Point2D destination
-
vessel
private INavigableVessel vessel
-
city
private java.util.Optional<ICity> city
-
-
Constructor Detail
-
TravelToTimedTask
public TravelToTimedTask(javafx.geometry.Point2D destination, INavigableVessel vessel, java.util.Optional<ICity> city)
-
-