uk.co.badgersinfoil.jactionscript
Class BranchAction

java.lang.Object
  |
  +--uk.co.badgersinfoil.jactionscript.Action
        |
        +--uk.co.badgersinfoil.jactionscript.BranchAction
Direct Known Subclasses:
IfJumpAction, JumpAction, WaitForFrame2Action, WaitForFrameAction

public abstract class BranchAction
extends Action

Abstract superclass for Actions that can cause the flow of control though the ActionList to branch.


Constructor Summary
BranchAction(java.lang.String mnemonic, ActionHandle target)
           
 
Method Summary
 void dispose()
          Removes this branch from the list of targeters maintained by the target ActionHandle and then breaks the reference to the target.
 ActionHandle getTarget()
           
 void setTarget(ActionHandle to)
          Sets the target of this branch to the given handle.
 
Methods inherited from class uk.co.badgersinfoil.jactionscript.Action
accept, getMnemonic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchAction

public BranchAction(java.lang.String mnemonic,
                    ActionHandle target)
Method Detail

getTarget

public ActionHandle getTarget()

setTarget

public void setTarget(ActionHandle to)
Sets the target of this branch to the given handle. This branch is not removed from the list of targeters of the old target ActionHandle; the calling code must handle this.


dispose

public void dispose()
Removes this branch from the list of targeters maintained by the target ActionHandle and then breaks the reference to the target.