Class HasVariableValue

    • Field Detail

      • m_VariableName

        protected VariableName m_VariableName
        the name of the variable.
      • m_Value

        protected String m_Value
        the value that the variable value gets compared with.
    • Constructor Detail

      • HasVariableValue

        public HasVariableValue()
    • Method Detail

      • setVariableName

        public void setVariableName​(VariableName value)
        Sets the name of the variable to check.
        Parameters:
        value - the name
      • getVariableName

        public VariableName getVariableName()
        Returns the name of the variable to check.
        Returns:
        the name
      • variableNameTipText

        public String variableNameTipText()
        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 value to compare against the variable value.
        Parameters:
        value - the value
      • getValue

        public String getValue()
        Returns the value to compare against the variable value.
        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