IInformant, IPerson, ITavernPersonpublic class InformantState extends BaseTavernPerson implements IInformant
| Constructor | Description |
|---|---|
InformantState() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<MapSegmentedImage> |
getMapSectionPart(IPlayer player) |
The informant may also hold a map part for the player.
|
int |
getPrice(IPlayer player) |
Get the price of the information.
|
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 |
setWareSurplus(ICity city,
IWare ware) |
Set the information about the surplus ware in the city
|
arrive, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leavegetName, getPirateLocation, getWareNeeded, getWareSurplus, isShowMapIfAvailable, setName, setPrice, setShowMapIfAvailablearrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCitypublic int getPrice(IPlayer player)
IInformantgetPrice in interface IInformantplayer - requesting the pricepublic java.util.Optional<MapSegmentedImage> getMapSectionPart(IPlayer player)
IInformantgetMapSectionPart in interface IInformantplayer - requesting playerMapSegmentedImage. Empty if there is no map segment for hte playerpublic void setPirateLocation(ISeaPirate pirate, ICity city)
IInformantsetPirateLocation in interface IInformantpirate - for whom there is information availablecity - near which the pirate has been seen.public void setNeededWare(ICity city, IWare ware)
IInformantsetNeededWare in interface IInformantcity - which needs wareware - that is neededpublic void setWareSurplus(ICity city, IWare ware)
IInformantsetWareSurplus in interface IInformantcity - which has surplus on waresware - that is available in abundanceCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.