Class AllowAllowNotConstraint

    • Constructor Detail

      • AllowAllowNotConstraint

        protected AllowAllowNotConstraint​(boolean is)
      • AllowAllowNotConstraint

        protected AllowAllowNotConstraint​(boolean allows,
                                          boolean allowsNot)
    • Method Detail

      • violates

        public boolean violates​(Constraint other,
                                Action.ActionEffect actionEffect)
        Description copied from interface: Constraint
        Gets whether this constraint violates another constraint
        Parameters:
        other - the other constraint
        actionEffect - the effect being evaluated
        Returns:
        true if the combination of constraints is a violation