Class TransitionList
java.lang.Object
games.stendhal.server.entity.npc.fsm.TransitionList
easy access to a list of transitions for debugging.
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongets all source states.getTransitionsForStateAndTrigger(ConversationStates state, Expression trigger)
returns a list of transitions for this state-trigger pair.returns a set of triggers for a given source state.
-
Constructor Details
-
TransitionList
Creates a new TransitionList.- Parameters:
transitions
- list of transitions
-
-
Method Details
-
getSourceStates
gets all source states.- Returns:
- Set of source states
-
getTriggersForState
returns a set of triggers for a given source state.- Parameters:
state
- source state- Returns:
- set of triggers
-
getTransitionsForStateAndTrigger
public List<Transition> getTransitionsForStateAndTrigger(ConversationStates state, Expression trigger)returns a list of transitions for this state-trigger pair.- Parameters:
state
- source statetrigger
- trigger- Returns:
- list of transitions
-