public interface IMap
| Modifier and Type | Method and Description |
|---|---|
void |
buildSettlement(ICity city,
IPlayer player)
Add the settlement for the player.
|
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.
|
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() |
void |
settlementBecomesTown(ICity city)
A founded settlement is complete and becomes a town.
|
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()
void buildSettlement(ICity city, IPlayer player)
city - to be foundedplayer - for which this city is reachablevoid settlementBecomesTown(ICity city)
city - that became a towndouble getNumberOfPixelPerKilometer()
ICity findCity(javafx.geometry.Point2D location)
location - of the supposed city.Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.