Class AndCondition

java.lang.Object
games.stendhal.server.entity.npc.condition.AndCondition
All Implemented Interfaces:
ChatCondition, PreTransitionCondition

@Dev(category=LOGIC, label="And") public class AndCondition extends Object implements ChatCondition
Is constructed from a group of conditions.

It evaluates to true, iff each condition evaluates to true.

  • Constructor Details

    • AndCondition

      public AndCondition(ChatCondition... condition)
      Creates a new "and"-condition.
      Parameters:
      condition - condition which should be and-ed.
    • AndCondition

      public AndCondition(List<ChatCondition> conditions)
      Creates a new "and"-condition.
      Parameters:
      conditions - list of condition which should be and-ed.
    • AndCondition

      public AndCondition(Iterable<ChatCondition> conditions)
      Creates a new "and"-condition.
      Parameters:
      conditions - condition which should be and-ed.
  • Method Details