net.nexttext.behaviour.control
Class OnButtonDepressed

java.lang.Object
  extended by net.nexttext.behaviour.AbstractAction
      extended by net.nexttext.behaviour.control.Condition
          extended by net.nexttext.behaviour.control.OnButtonDepressed
All Implemented Interfaces:
Action

public class OnButtonDepressed
extends Condition

A Condition which is true when a mouse button is depressed.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action
Action.ActionResult
 
Constructor Summary
OnButtonDepressed(Mouse mouse, int button, Action trueAction, Action falseAction)
           
 
Method Summary
 boolean condition(TextObject to)
           
 
Methods inherited from class net.nexttext.behaviour.control.Condition
behave, complete, getRequiredProperties
 
Methods inherited from class net.nexttext.behaviour.AbstractAction
behave, behave, getDisplayName, makeBehaviour, properties, setDisplayName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnButtonDepressed

public OnButtonDepressed(Mouse mouse,
                         int button,
                         Action trueAction,
                         Action falseAction)
Parameters:
button - is a value from net.nexttext.input.Mouse
Method Detail

condition

public boolean condition(TextObject to)
Specified by:
condition in class Condition
Returns:
the outcome of the condition.