Interface IReputation

  • All Known Implementing Classes:
    Reputation

    public interface IReputation
    Indicating the reputation of a player in a city. This is updated on a weekly basis The reputation is periodically updated.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 23, 2012
    • Method Detail

      • getReputationDifference

        int getReputationDifference()
        Retrieve the change in reputation within the last week. Single digit values indicate a small change, values larger than 25 indicate a very large change.
        Returns:
        reputation change in the last week
      • getPopularity

        int getPopularity()
        Retrieve the popularity of the player in the city
        Returns:
        current popularity in the city this instance is assigned to
      • update

        void update​(int amount)
        Update the reputation by the amount.
        Parameters:
        amount - new reputation amount.
      • addWareReputation

        void addWareReputation​(int wareReputation)
        Update the reputation with the reputation change by supplying wares.
        Parameters:
        wareReputation - reputation bonus by ware delivery.