|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.action.input.Action
public class Action
Actions are generated by Behaviors in response to variables set in Condition
objects. They describe what the Participant a Behavior is attached to should
do with itself. Action objects can be re-used from one call to a Behavior's
act(Participant, float) method to the next. Participant instances should
discard them
as soon as their processAction(Action) method has completed, since a given
Behavior can be attached to more than one Participant.
API Stability: Beta.
Constructor Summary | |
---|---|
Action()
Constructs a new Action with a name "default" and value 0f. |
|
Action(java.lang.String name,
float value)
Constructs a new Action with the given name and value. |
Method Summary | |
---|---|
java.lang.String |
getName()
Peovides the name of this Action. |
float |
getValue()
Provides the value of this Action. |
void |
setName(java.lang.String name)
Sets the name of this Action. |
void |
setValue(float value)
Sets the value of this Action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Action()
public Action(java.lang.String name, float value)
name
- the name of the Action.value
- the value of the Action.Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name.public float getValue()
public void setValue(float value)
value
- the value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |