Class TrustLevels


  • public class TrustLevels
    extends java.lang.Object
    A class providing useful methods on handling factions' trustlevels.
    Author:
    Ulrich Küster
    • Constructor Summary

      Constructors 
      Constructor Description
      TrustLevels()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean containsTrustLevelsSetByUser​(GameData data)
      determines if the specified gamedata contains trust levels, that were set by the user explicitly or read from CR (which means the same)
      static void recalculateTrustLevels​(GameData data)
      recalculates the default-trustlevel based on the alliances of all privileged factions in the given GameData-Object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrustLevels

        public TrustLevels()
    • Method Detail

      • recalculateTrustLevels

        public static void recalculateTrustLevels​(GameData data)
        recalculates the default-trustlevel based on the alliances of all privileged factions in the given GameData-Object.
      • containsTrustLevelsSetByUser

        public static boolean containsTrustLevelsSetByUser​(GameData data)
        determines if the specified gamedata contains trust levels, that were set by the user explicitly or read from CR (which means the same)