Class AbstractCondition

java.lang.Object
com.rs.seagull.emulator.api.AbstractCondition
All Implemented Interfaces:
Condition
Direct Known Subclasses:
PropertyCondition

public abstract class AbstractCondition extends Object implements Condition
The base class for all property conditions.
  • Field Details

    • semaphore

      protected Semaphore semaphore
      A semaphore to wait for a condition.
  • Constructor Details

    • AbstractCondition

      public AbstractCondition()
  • Method Details

    • setTrigger

      public abstract void setTrigger(Semaphore semaphore, BareSession session)
      Set the trigger condition.
      Parameters:
      semaphore - the semaphore to wait for a condition
      session - the session for which to wait for the condition
    • cleanUp

      public void cleanUp()
      Clean up, e.g. remove listeners.