@Component
@Lazy
@DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class)
public class SeafaringService
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected com.google.common.eventbus.AsyncEventBus |
clientServerEventBus |
| Constructor | Description |
|---|---|
SeafaringService() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
java.util.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.
|
@Autowired
@Qualifier("serverClientEventBus")
protected com.google.common.eventbus.AsyncEventBus clientServerEventBus
public java.util.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 - which travels between citiestoCity - destination citypublic void travelToCity(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity toCity)
vessel - traveling to a citytoCity - destination citypublic void travelNotBetweenCities(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.geometry.Point2D location)
vessel - travelling between two locations at sealocation - destination locationpublic void travelFromCity(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
javafx.geometry.Point2D location)
vessel - traveling from a city to a location at sealocation - destination locationCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.