DefaultTriggerer, NonTriggererpublic interface Triggerer extends CMCommon
| Modifier and Type | Interface | Description | 
|---|---|---|
| static class  | Triggerer.TriggerCode | The definition of the key words in the definitions. | 
| static class  | Triggerer.TrigSignal | In order to have a Triggerer signaled that the rituals
 may need refreshing, this method exists to be called globally. | 
idConverter| Modifier and Type | Method | Description | 
|---|---|---|
| void | addTrigger(java.lang.Object key,
          java.lang.String encodedTrigger,
          java.util.Map<java.lang.String,java.util.List<Social>> socials,
          java.util.List<java.lang.String> errors) | Parses and adds a new series of steps, which together form
 a complete trigger. | 
| void | addTriggerAssist(MOB assistingM,
                java.lang.Object key) | If a trigger allows otherwise non-qualifying participants,
 this will allow it to add other participants to the message
 listener for their main triggerer and key, using the INCLUDE
 trigger directive. | 
| void | deleteTracking(MOB mob,
              java.lang.Object key) | If the given trigger key is in progress by the given mob,
 this cancels it entirely. | 
| CMMsg | genNextAbleTrigger(MOB hostM,
                  MOB mob,
                  java.lang.Object key,
                  boolean force) | Generates a message for the next step in the
 tracked trigger denoted by the given trigger
 key. | 
| Triad<MOB,java.lang.Object,java.util.List<java.lang.String>> | getCompleted(MOB hostM,
            java.lang.Object[] keys,
            CMMsg msg) | Given a set of trigger keys that may be progressed or
 completed by the given message, this will progress them, and
 then return the first one which , because of the message, is
 now in a completed state, along with any args accumulated. | 
| java.lang.Object[] | getInProgress(MOB mob) | Returns the trigger keys for any triggers that the given
 mob currently has in progress. | 
| java.util.Map<java.lang.String,java.util.List<Social>> | getSocialSets() | Returns the internal socials applicable to this trigger. | 
| java.lang.String | getTriggerDesc(java.lang.Object key) | Returns a description of the trigger steps
 of the given trigger key | 
| boolean | hasTrigger(java.lang.Object key) | Returns whether a trigger with the given key is being tracked here. | 
| boolean | isCompleted(java.lang.Object key,
           CMMsg msg) | Given a trigger key, and a message which may be progressed
 completed by the given message, this will progress it, and
 then return true if it was completed. | 
| boolean | isDisabled() | If this triggering engine is disabled, this will return true | 
| boolean | isObsolete() | If something has changed that requires a triggerer or tracker to
 be reset, then every instance is notified, and this method can
 be called to see if this specific object needs resetting. | 
| boolean | isTracking(MOB mob,
          java.lang.Object key) | Returns whether the given trigger key is in progress
 by the given mob | 
| boolean | isTracking(java.lang.Object key,
          CMMsg msg) | Given a message and a trigger key, this will see if
 the message might begin, progress, or complete the
 given trigger steps. | 
| void | setIgnoreTracking(MOB mob,
                 boolean truefalse) | Sets the given mob as being ignored for the purpose of
 tracking, or re-enables tracking. | 
| Triggerer | setName(java.lang.String name) | Some triggers benefit from unique names, and in those cases,
 this allows that name to be set for proper matching. | 
| void | setObsolete() | If this triggering engine needs disabling due to changes in
 local abilities, this method can be called. | 
| boolean | wasCompletedRecently(MOB mob,
                    java.lang.Object key) | Returns whether the given mob recently completed the trigger
 with the given key, typically within 4 seconds. | 
| java.lang.Object[] | whichCompleted(java.lang.Object[] keys,
              CMMsg msg) | Given a set of trigger keys that may be progressed or
 completed by the given message, this will progress them, and
 then return the set of keys which, because of the message, are
 now in a completed state. | 
| java.lang.Object[] | whichTracking(CMMsg msg) | Given a message, this will check all triggers to see if
 the message might begin, progress, or complete one of the
 triggers. | 
| MOB[] | whosDoneWaiting() | If any triggers are currently in a wait state, this will return
 which ones, as of the moment this method was called, are now
 done waiting. | 
copyOf, ID, initializeClass, name, newInstanceTriggerer setName(java.lang.String name)
name - the Namevoid addTrigger(java.lang.Object key,
                java.lang.String encodedTrigger,
                java.util.Map<java.lang.String,java.util.List<Social>> socials,
                java.util.List<java.lang.String> errors)
key - the arbitrary but unique key objectencodedTrigger - the encoded trigger stepssocials - null, or list of custom socials that might apply to this triggererrors - null, or a list to put errors intoboolean hasTrigger(java.lang.Object key)
key - the trigger keyjava.lang.String getTriggerDesc(java.lang.Object key)
key - the arbitrary but unique key objectCMMsg genNextAbleTrigger(MOB hostM, MOB mob, java.lang.Object key, boolean force)
hostM - TODOmob - the mob to checkkey - the arbitrary but unique key objectforce - true to force even an unstarted triggervoid setIgnoreTracking(MOB mob, boolean truefalse)
mob - the mob to checktruefalse - true to turn on ignoring, false otherwisevoid deleteTracking(MOB mob, java.lang.Object key)
mob - the mob to checkkey - the arbitrary but unique key objectboolean isTracking(MOB mob, java.lang.Object key)
mob - the mob to checkkey - the arbitrary but unique key objectvoid addTriggerAssist(MOB assistingM, java.lang.Object key)
assistingM - the mob being assisted, the main triggerer mobkey - the key to the triggerboolean isTracking(java.lang.Object key,
                   CMMsg msg)
key - the arbitrary but unique key objectmsg - the message that might be relevant.isCompleted(Object, CMMsg), 
whichTracking(CMMsg), 
whichCompleted(Object[], CMMsg)java.lang.Object[] whichTracking(CMMsg msg)
msg - the message that might be relevantisCompleted(Object, CMMsg), 
isTracking(Object, CMMsg), 
whichCompleted(Object[], CMMsg)boolean isCompleted(java.lang.Object key,
                    CMMsg msg)
key - the arbitrary but unique key objectmsg - the message which may cause a trigger to completewhichTracking(CMMsg), 
isTracking(Object, CMMsg), 
whichCompleted(Object[], CMMsg)java.lang.Object[] whichCompleted(java.lang.Object[] keys,
                                  CMMsg msg)
keys - the arbitrary but unique keys to apply the message tomsg - the message which may cause triggers to completeisCompleted(Object, CMMsg), 
whichTracking(CMMsg), 
isTracking(Object, CMMsg)Triad<MOB,java.lang.Object,java.util.List<java.lang.String>> getCompleted(MOB hostM, java.lang.Object[] keys, CMMsg msg)
hostM - normally the msg.source(), but who is the trigger hostkeys - the arbitrary but unique keys to apply the message tomsg - the message which may cause triggers to completeisCompleted(Object, CMMsg), 
whichTracking(CMMsg), 
isTracking(Object, CMMsg)MOB[] whosDoneWaiting()
java.util.Map<java.lang.String,java.util.List<Social>> getSocialSets()
java.lang.Object[] getInProgress(MOB mob)
mob - the mob who started somethingboolean wasCompletedRecently(MOB mob, java.lang.Object key)
mob - the mob to checkkey - the object key to checkboolean isObsolete()
setObsolete()void setObsolete()
isObsolete()boolean isDisabled()