Class InList

    • Field Detail

      • m_Items

        protected BaseString[] m_Items
        the strings to match against.
      • m_Value

        protected String m_Value
        the value to check.
      • m_ItemSet

        protected transient Set<String> m_ItemSet
        the set to use for checks.
    • Constructor Detail

      • InList

        public InList()
    • Method Detail

      • setItems

        public void setItems​(BaseString[] value)
        Sets the string items to check against.
        Parameters:
        value - the items
      • getItems

        public BaseString[] getItems()
        Returns the string items to check against.
        Returns:
        the items
      • itemsTipText

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

        public void setValue​(String value)
        Sets the (optional) value to look for in the items, takes precedence over the token passing through.
        Parameters:
        value - the value
      • getValue

        public String getValue()
        Returns the (optional) value to look for in the items, takes precedence over the token passing through.
        Returns:
        the value
      • valueTipText

        public String valueTipText()
        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