Class HasElements

    • Field Detail

      • m_MinElements

        protected int m_MinElements
        the number of elements to have at least.
    • Constructor Detail

      • HasElements

        public HasElements()
    • Method Detail

      • setMinElements

        public void setMinElements​(int value)
        Sets the minimum number of elements the array has to have.
        Parameters:
        value - the number of elements (0-inf)
      • getMinElements

        public int getMinElements()
        Returns the minimum number of elements the array has to have
        Returns:
        the number of elements (0-inf)
      • minElementsTipText

        public String minElementsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doEvaluate

        protected boolean doEvaluate​(Actor owner,
                                     Token token)
        Performs the actual evaluation.
        Specified by:
        doEvaluate in class AbstractBooleanCondition
        Parameters:
        owner - the owning actor
        token - the current token passing through
        Returns:
        the result of the evaluation