public interface IMap
| Modifier and Type | Method and Description |
|---|---|
void |
add(ICity city)
Add a new city.
|
Optional<ICity> |
findCity(javafx.geometry.Point2D location)
Find the city at the given coordinates.
|
ICity |
findCity(String cityName)
Find a city by its name.
|
List<ICity> |
getCities()
Retrieve an unmodifiable list of all the cities in the map
|
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.
|
List<javafx.geometry.Point2D> |
getCityCoordinates()
Retrieve a list of all coordinates of the cities.
|
javafx.geometry.Dimension2D |
getDimension()
Retrieve the map dimensions
|
List<IFutureTowns> |
getFutureTowns() |
List<ILandBridge> |
getLandbridges() |
String |
getMapBWImagePath()
Retrieve the path for the black and white variant of the map.
|
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.
|
List<PirateNest> |
getPirateNests() |
com.google.common.collect.Multimap<IPlayer,ICity> |
getTownsInFounding()
Retrieve the cities that are currently being founded by players.
|
Set<ITradeRoute> |
getTradeRoutes()
Retrieve the trade routes defined for this map.
|
int getNumberCities()
List<ICity> getCities()
List<ICity> getCities(IPlayer player)
javafx.geometry.Dimension2D getDimension()
String getMapImagePath()
String getMapBWImagePath()
List<IFutureTowns> getFutureTowns()
List<ILandBridge> getLandbridges()
List<PirateNest> getPirateNests()
double getNumberOfPixelPerKilometer()
Optional<ICity> findCity(javafx.geometry.Point2D location)
location - of the supposed city.List<javafx.geometry.Point2D> getCityCoordinates()
com.google.common.collect.Multimap<IPlayer,ICity> getTownsInFounding()
void add(ICity city)
city - Set<ITradeRoute> getTradeRoutes()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.