GameMappublic interface IMap
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(ICity city) |
Add a new city.
|
ICity |
findCity(java.lang.String cityName) |
Find a city by its name.
|
java.util.Optional<ICity> |
findCity(javafx.geometry.Point2D location) |
Find the city at the given coordinates.
|
java.util.List<ICity> |
getCities() |
Retrieve an unmodifiable list of all the cities in the map
|
java.util.List<ICity> |
getCities(IPlayer player) |
Retrieve an unmodifiable list of all the cities in the map also including the once only visible to the player.
|
java.util.List<javafx.geometry.Point2D> |
getCityCoordinates() |
Retrieve a list of all coordinates of the cities.
|
javafx.geometry.Dimension2D |
getDimension() |
Retrieve the map dimensions
|
java.util.List<IFutureTowns> |
getFutureTowns() |
Retrieve the future towns.
|
java.util.List<ILandBridge> |
getLandbridges() |
Retrieve the land bridges.
|
java.lang.String |
getMapBWImagePath() |
Retrieve the path for the black and white variant of the map.
|
java.lang.String |
getMapImagePath() |
Retrieve the path for the map image without the cities added.
|
int |
getNumberCities() |
Retrieve the number of cities that are on the map.
|
double |
getNumberOfPixelPerKilometer() |
Retrieve the scale of the map by providing a number to convert one kilometer into
a number of pixels.
|
java.util.List<PirateNest> |
getPirateNests() |
Retrieve the pirate nests
|
com.google.common.collect.Multimap<IPlayer,ICity> |
getTownsInFounding() |
Retrieve the cities that are currently being founded by players.
|
java.util.Set<ITradeRoute> |
getTradeRoutes() |
Retrieve the trade routes defined for this map.
|
int getNumberCities()
java.util.List<ICity> getCities()
java.util.List<ICity> getCities(IPlayer player)
player - for whom the cities are visible.playerICity findCity(java.lang.String cityName)
cityName - name of the cityjavafx.geometry.Dimension2D getDimension()
java.lang.String getMapImagePath()
java.lang.String getMapBWImagePath()
java.util.List<IFutureTowns> getFutureTowns()
java.util.List<ILandBridge> getLandbridges()
java.util.List<PirateNest> getPirateNests()
double getNumberOfPixelPerKilometer()
java.util.Optional<ICity> findCity(javafx.geometry.Point2D location)
location - of the supposed city.java.util.List<javafx.geometry.Point2D> getCityCoordinates()
com.google.common.collect.Multimap<IPlayer,ICity> getTownsInFounding()
void add(ICity city)
city - to be addedjava.util.Set<ITradeRoute> getTradeRoutes()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.