@Component @Lazy @DependentInitialisation(value=ch.sahits.game.openpatrician.util.StartNewGameBean.class) public class SeafaringService extends Object
| Modifier and Type | Field and Description |
|---|---|
private AStar |
aStar |
private ExecutorService |
clientThreadPool |
private org.apache.logging.log4j.Logger |
logger |
private ScheduledExecutorService |
schedulableServerThreadPool |
private ShipPositionUpdateTask |
shipUpdateTask |
| Constructor and Description |
|---|
SeafaringService() |
| Modifier and Type | Method and Description |
|---|---|
private void |
initializeTimer() |
List<javafx.geometry.Point2D> |
travelTo(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.geometry.Point2D destination)
Send a ship or convoy on its way to a destination.
|
private final org.apache.logging.log4j.Logger logger
@Autowired private AStar aStar
@Autowired @Qualifier(value="clientThreadPool") private ExecutorService clientThreadPool
@Autowired private ShipPositionUpdateTask shipUpdateTask
@Autowired @Qualifier(value="schedulableServerThreadPool") private ScheduledExecutorService schedulableServerThreadPool
@PostConstruct private void initializeTimer()
public List<javafx.geometry.Point2D> travelTo(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel, javafx.geometry.Point2D destination)
vessel - that is sentdestination - of the travelCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.