Class TransitionContext
java.lang.Object
games.stendhal.server.entity.npc.fsm.TransitionContext
manages the current context for transitions
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TransitionContext
public TransitionContext()
-
-
Method Details
-
set
sets the label for the current context- Parameters:
label
- label
-
get
gets the current label- Returns:
- current label
-
getWithFallback
gets the TransitionContext, prefering the specified one.- Parameters:
label
- a label that will take precedence, if it is defined.- Returns:
- label
-