public interface IInformant extends ITavernPerson
isPresentProperty| Modifier and Type | Method and Description |
|---|---|
Optional<MapSegmentedImage> |
getMapSectionPart(IPlayer player)
The informant may also hold a map part for the player.
|
String |
getName()
Retreive the name of the informant
|
Optional<ch.sahits.datastructure.GenericPair<String,ICity>> |
getPirateLocation()
Possible information about the location of a pirate.
|
int |
getPrice(IPlayer player)
Get the price of the information.
|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
getWareNeeded()
Possible information about in which city which ware is needed.
|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
getWareSurplus()
Possible information about in which city which ware is available in surplus.
|
boolean |
isShowMapIfAvailable() |
void |
setName(String name) |
void |
setNeededWare(ICity city,
IWare ware)
Set the information about the needed ware in the city.
|
void |
setPirateLocation(ISeaPirate pirate,
ICity city)
Set the location of the pirate.
|
void |
setPrice(int price) |
void |
setShowMapIfAvailable(boolean showMapIfAvailable) |
void |
setWareSurplus(ICity city,
IWare ware)
Set the information about the surplus ware in the city
|
arrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCityint getPrice(IPlayer player)
player - requesting the priceString getName()
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> getWareNeeded()
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> getWareSurplus()
Optional<ch.sahits.datastructure.GenericPair<String,ICity>> getPirateLocation()
void setNeededWare(ICity city, IWare ware)
city - ware - void setWareSurplus(ICity city, IWare ware)
city - ware - void setPirateLocation(ISeaPirate pirate, ICity city)
pirate - city - Optional<MapSegmentedImage> getMapSectionPart(IPlayer player)
player - requesting playerboolean isShowMapIfAvailable()
void setShowMapIfAvailable(boolean showMapIfAvailable)
void setPrice(int price)
void setName(String name)
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.