IReputationpublic class Reputation extends java.lang.Object implements IReputation
| Constructor | Description |
|---|---|
Reputation(ICity city,
IPlayer player) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addWareReputation(int wareReputation) |
Update the reputation with the reputation change by supplying wares.
|
int |
getPopularity() |
Retrieve the popularity of the player in the city
|
int |
getReputationDifference() |
Retrieve the change in reputation within the last week.
|
void |
update(int amount) |
Update the reputation by the amount.
|
public int getReputationDifference()
IReputationgetReputationDifference in interface IReputationpublic void addWareReputation(int wareReputation)
IReputationaddWareReputation in interface IReputationwareReputation - reputation bonus by ware delivery.public int getPopularity()
IReputationgetPopularity in interface IReputationpublic void update(int amount)
IReputationupdate in interface IReputationamount - new reputation amount.Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.