Interface IPlayerFactionData


  • public interface IPlayerFactionData
    Tracks a player's faction standing points.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addPoints​(int id, int points)
      Adds points to the player's standing with the given faction.
      int getPoints​(int id)
      Returns the player's points for the given faction.
      void setPoints​(int id, int points)
      Sets the player's points for the given faction.
    • Method Detail

      • getPoints

        int getPoints​(int id)
        Returns the player's points for the given faction.
        Parameters:
        id - the faction ID.
        Returns:
        the faction points.
      • addPoints

        void addPoints​(int id,
                       int points)
        Adds points to the player's standing with the given faction. Use negative values to decrease.
        Parameters:
        id - the faction ID.
        points - the points to add.
      • setPoints

        void setPoints​(int id,
                       int points)
        Sets the player's points for the given faction.
        Parameters:
        id - the faction ID.
        points - the new point value.