@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 PathInterpolatorMap |
interpolators |
private org.apache.logging.log4j.Logger |
logger |
private ch.sahits.game.openpatrician.model.map.IMap |
map |
private IPathConverter |
pathConverter |
private ScheduledExecutorService |
schedulableServerThreadPool |
private ShipService |
shipService |
private ShipPositionUpdateTask |
shipUpdateTask |
| Constructor and Description |
|---|
SeafaringService() |
| Modifier and Type | Method and Description |
|---|---|
private void |
initializeTimer() |
void |
travelBetweenCities(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity toCity)
Travel from one city to another.
|
void |
travelFromCity(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.geometry.Point2D location)
Travel from a city to a place that is not a city.
|
void |
travelNotBetweenCities(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.geometry.Point2D location)
Travel between two locations, where neither is a city.
|
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.
|
void |
travelToCity(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity toCity)
Travel from a location that is not a city to a city.
|
private final org.apache.logging.log4j.Logger logger
@Autowired private AStar aStar
@Autowired @Qualifier(value="clientThreadPool") private ExecutorService clientThreadPool
@Autowired private ShipPositionUpdateTask shipUpdateTask
@Autowired private ShipService shipService
@Autowired private IPathConverter pathConverter
@Autowired @Qualifier(value="schedulableServerThreadPool") private ScheduledExecutorService schedulableServerThreadPool
@Autowired private PathInterpolatorMap interpolators
@Autowired private ch.sahits.game.openpatrician.model.map.IMap map
@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 travelpublic void travelBetweenCities(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity toCity)
vessel - toCity - public void travelToCity(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity toCity)
vessel - toCity - public void travelNotBetweenCities(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.geometry.Point2D location)
vessel - location - public void travelFromCity(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.geometry.Point2D location)
vessel - location - Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.