de.esw.eengine.fsm
Class State
java.lang.Object
de.esw.eengine.fsm.State
public abstract class State
- extends java.lang.Object
- Since:
- 1.0
- Version:
- $Id: State.java 188 2005-07-10 21:32:57Z markusw $
- Author:
- markusw
|
Constructor Summary |
State()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
State
public State()
enter
public abstract Transition[] enter(java.lang.Object input)
- Executed when the state is entered. If the result array contains
Transitions then the state is left directly after
executing this method and leave() is called.
- Parameters:
input - Generic input object from last state
- Returns:
- Transitions who are possible to trigger
- See Also:
leave()
update
public final Transition[] update(float delta,
java.lang.Object input)
- Parameters:
delta - Delta time since last callinput - Generic input object for process method
- Returns:
- Transitions who are possible to trigger
leave
public abstract java.lang.Object leave()
- Returns:
- Generic information object for enter method on next state
addTransition
public final void addTransition(Transition t)
- Parameters:
t - Transition to add
removeTransition
public final void removeTransition(Transition t)
- Parameters:
t - Transition to remove
getTransitionByName
public Transition getTransitionByName(java.lang.String name)
- Parameters:
name - Name of the Transition to search
- Returns:
- The matching
Transition or null