net.jinx.action.input
Interface Behavior

All Known Implementing Classes:
ActionMap

public interface Behavior

Behavior is what controls a Participant. This can be either an AI or an input translator of some kind that connects input devices to specific actions. For an example input translator, see ActionMap in this package.

API Stability: Beta.


Method Summary
 void act(Participant p, float dt)
          Causes p to act in some manner, according to this Behavior's mode of operation.
 

Method Detail

act

void act(Participant p,
         float dt)
Causes p to act in some manner, according to this Behavior's mode of operation. If this method needs to retrieve variables related to the Participant's state, or to store variables related to the operation of this Behavior, they should (but don't have to) be stored in p's Condition object. See Participant.getCondition() for more information.

Parameters:
p - the Participant that is requesting action.
dt - the current change in time value.