Class OnConditionChange

java.lang.Object
org.bzdev.drama.OnConditionChange

public class OnConditionChange extends Object
Dynamic-method helper.
  • Constructor Details

    • OnConditionChange

      public OnConditionChange()
  • Method Details

    • addDispatch

      protected void addDispatch(Class[] types, OnConditionChange.Caller caller)
      Add dispatch method.
      Parameters:
      types - an array of types
      caller - the caller
    • addDispatchComplete

      protected void addDispatchComplete()
      Indicate all displatch callers have been added.
    • register

      protected void register(Class clazz)
      Register a class. This causes classes to be loaded.
      Parameters:
      clazz - the class to register with this helper.
    • getHelper

      public static final OnConditionChange getHelper()
      Get the helper.
      Returns:
      the helper
    • dispatch

      protected void dispatch(Actor obj, Condition arg0, ConditionMode arg1, SimObject arg2)
      Dispatch the method.
      Parameters:
      obj - the object whose method is being dispatched
      arg0 - argument number 0
      arg1 - argument number 1
      arg2 - argument number 2