All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class improv.actor.behavior.DecisionTrigger

java.lang.Object
   |
   +----improv.actor.behavior.Action
           |
           +----improv.actor.behavior.DecisionTrigger

public final class DecisionTrigger
extends Action

Constructor Index

 o DecisionTrigger(String[], ChannelReference, float, boolean)
 o DecisionTrigger(String[], ChannelReference, float, boolean, Sequence)

Method Index

 o doAction()
Perform the Decision, and trigger a Behavior.
 o doAction(double)
Perform the Decision, and trigger a Behavior.
 o getType()

Constructors

 o DecisionTrigger
 public DecisionTrigger(String behaviorNames[],
                        ChannelReference channelReference,
                        float duration,
                        boolean momentary,
                        Sequence sequence)
Parameters:
behaviorNames - an array of names of behaviors to choose from.
channelReference - the ChannelReference used to rate the behaviors
duration - the temporary duration of the behavior. If -1 then don't override behavior's duration.
momentary - the temporary momentary behavior. If the behavior is already momentary, don't override.
sequence - the sequence calling this action
 o DecisionTrigger
 public DecisionTrigger(String behaviorNames[],
                        ChannelReference channelReference,
                        float duration,
                        boolean momentary)

Methods

 o doAction
 public void doAction(double time)
Perform the Decision, and trigger a Behavior.

Parameters:
time - the trigger time of the action. If -1 execute immediately.
Overrides:
doAction in class Action
 o doAction
 public void doAction()
Perform the Decision, and trigger a Behavior.

Overrides:
doAction in class Action
 o getType
 public String getType()
Overrides:
getType in class Action

All Packages  Class Hierarchy  This Package  Previous  Next  Index