Class UnitFactionTLFilter


  • public class UnitFactionTLFilter
    extends UnitFilter
    DOCUMENT ME!
    Version:
    1.0
    Author:
    Andreas
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int maxTL  
      protected int minTL  
    • Constructor Summary

      Constructors 
      Constructor Description
      UnitFactionTLFilter​(int minTL, int maxTL)
      Creates a new UnitFactionTLFilter object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean acceptUnit​(Unit u)
      Accepts units with trustlevel between (or including) specified min an max.
      int getMaxTL()  
      int getMinTL()  
      void setMaxTL​(int maxTL)
      Set maximal accepted trustlevel.
      void setMinTL​(int minTL)
      Set minimal accepted trustlevel.
      • Methods inherited from class java.lang.Object

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

      • minTL

        protected int minTL
      • maxTL

        protected int maxTL
    • Constructor Detail

      • UnitFactionTLFilter

        public UnitFactionTLFilter​(int minTL,
                                   int maxTL)
        Creates a new UnitFactionTLFilter object.
    • Method Detail

      • getMinTL

        public int getMinTL()
        Returns:
        minimum trustlevel
      • getMaxTL

        public int getMaxTL()
        Returns:
        maximum trustlevel
      • setMinTL

        public void setMinTL​(int minTL)
        Set minimal accepted trustlevel.
      • setMaxTL

        public void setMaxTL​(int maxTL)
        Set maximal accepted trustlevel.