calculateWareRepputation
public int calculateWareRepputation(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.
If the city contributes enough to cover the needs, this ware is
irrelevant for the computation
If the player contributes enough to cover all the need he gets
100 points for the ware. If he contributes less he gets a fraction
according to what he contributes.
- Parameters:
city - for which the ware based reputation should be checked
player - for whom the reputation is calculated
- Returns:
- value between 0 and 100