@Lazy
@Component
public class ReputationCalculator
extends java.lang.Object
| Constructor | Description |
|---|---|
ReputationCalculator() |
| Modifier and Type | Method | Description |
|---|---|---|
ch.sahits.game.openpatrician.model.personal.ICareer |
calculateCareer(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.IPlayer player) |
Calculate the current career level of the player.
|
int |
calculateWareReputation(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.IPlayer player) |
Check each ware if the player contributes and what amount.
|
double |
remapReputation(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.IPlayer player) |
Remap the linear reputation stored in a city to value that are used in
ranks.
|
public int calculateWareReputation(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.IPlayer player)
city - for which the ware based reputation should be checkedplayer - for whom the reputation is calculatedpublic double remapReputation(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.IPlayer player)
city - for which the reputation is remapedplayer - for which the reputation is remappedpublic ch.sahits.game.openpatrician.model.personal.ICareer calculateCareer(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.IPlayer player)
city - in which to calculate hte career levelplayer - for whom to calculate the career levelCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.