public class Reputation extends Object implements IReputation
| Modifier and Type | Field and Description |
|---|---|
private ICity |
city |
private IPlayer |
player |
private int |
reputationCurrentWeek |
private int |
reputationLastWeek |
| Constructor and Description |
|---|
Reputation(ICity city,
IPlayer player) |
| Modifier and Type | Method and 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.
|
private int reputationLastWeek
private int reputationCurrentWeek
private final ICity city
private final IPlayer player
public int getReputationDifference()
IReputationgetReputationDifference in interface IReputationpublic void addWareReputation(int wareReputation)
IReputationaddWareReputation in interface IReputationpublic int getPopularity()
IReputationgetPopularity in interface IReputationpublic void update(int amount)
IReputationupdate in interface IReputationCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.