IPerson, ITavernPersonInformantStatepublic interface IInformant extends ITavernPerson
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<MapSegmentedImage> |
getMapSectionPart(IPlayer player) |
The informant may also hold a map part for the player.
|
java.lang.String |
getName() |
Retreive the name of the informant
|
java.util.Optional<ch.sahits.datastructure.GenericPair<java.lang.String,ICity>> |
getPirateLocation() |
Possible information about the location of a pirate.
|
int |
getPrice(IPlayer player) |
Get the price of the information.
|
java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
getWareNeeded() |
Possible information about in which city which ware is needed.
|
java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
getWareSurplus() |
Possible information about in which city which ware is available in surplus.
|
boolean |
isShowMapIfAvailable() |
Indicate if the informant has a piece of a map.
|
void |
setName(java.lang.String name) |
Set the name of the informant
|
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) |
Set the price of the information
|
void |
setShowMapIfAvailable(boolean showMapIfAvailable) |
Set the flag for the map piece
|
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 pricejava.lang.String getName()
java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> getWareNeeded()
GenericPair of city and ware for missing wares.java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> getWareSurplus()
GenericPair of city and ware whith surplus of ware.java.util.Optional<ch.sahits.datastructure.GenericPair<java.lang.String,ICity>> getPirateLocation()
GenericPair of pirate name and city where the pirate is rumored to be.void setNeededWare(ICity city, IWare ware)
city - which needs wareware - that is neededvoid setWareSurplus(ICity city, IWare ware)
city - which has surplus on waresware - that is available in abundancevoid setPirateLocation(ISeaPirate pirate, ICity city)
pirate - for whom there is information availablecity - near which the pirate has been seen.java.util.Optional<MapSegmentedImage> getMapSectionPart(IPlayer player)
player - requesting playerMapSegmentedImage. Empty if there is no map segment for hte playerboolean isShowMapIfAvailable()
void setShowMapIfAvailable(boolean showMapIfAvailable)
showMapIfAvailable - true if the informant has a map piecevoid setPrice(int price)
price - of hte informationvoid setName(java.lang.String name)
name - of the informantCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.