gizmoball.gui
Class KeyableAction

java.lang.Object
  extended by gizmoball.gui.KeyableAction

public class KeyableAction
extends java.lang.Object

UserAction is a wrapper class for functions that pertain to what happens when the user makes a relevant input.


Method Summary
 void addGizmo(Gizmo giz)
           
 void addGizmos(java.util.List<Gizmo> giz)
          Adds gizmos to be activated by this.
 void addTrigger(Trigger trig)
          Adds a Trigger.
 void addTriggers(java.util.List<Trigger> trig)
          Adds the Triggers.
 java.util.List<Gizmo> getGizmos()
           
 java.util.List<Trigger> getTriggers()
           
 boolean noTriggers()
           
 void removeGizmo(Gizmo giz)
          Removes gizmo activated by this.
 void setTriggers(java.util.List<Trigger> trig)
          Sets the triggers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGizmos

public java.util.List<Gizmo> getGizmos()
Returns:
All the gizmos that get activated when this action is run.

addGizmos

public void addGizmos(java.util.List<Gizmo> giz)
Adds gizmos to be activated by this.


addGizmo

public void addGizmo(Gizmo giz)

removeGizmo

public void removeGizmo(Gizmo giz)
Removes gizmo activated by this.

Parameters:
giz -

getTriggers

public java.util.List<Trigger> getTriggers()
Returns:
A new copy of trig.

setTriggers

public void setTriggers(java.util.List<Trigger> trig)
Sets the triggers.

Parameters:
trig -
Modifies:
this.trig

addTrigger

public void addTrigger(Trigger trig)
Adds a Trigger.

Parameters:
trig -
Modifies:
this.trig

addTriggers

public void addTriggers(java.util.List<Trigger> trig)
Adds the Triggers.

Parameters:
trig -
Modifies:
this.trig

noTriggers

public boolean noTriggers()
Returns:
True if and only if trig.isEmpty().