Class TransitionContext

java.lang.Object
games.stendhal.server.entity.npc.fsm.TransitionContext

public class TransitionContext extends Object
manages the current context for transitions
Author:
hendrik
  • Constructor Details

    • TransitionContext

      public TransitionContext()
  • Method Details

    • set

      public static void set(String label)
      sets the label for the current context
      Parameters:
      label - label
    • get

      public static String get()
      gets the current label
      Returns:
      current label
    • getWithFallback

      public static String getWithFallback(String label)
      gets the TransitionContext, prefering the specified one.
      Parameters:
      label - a label that will take precedence, if it is defined.
      Returns:
      label