Package games.stendhal.server.entity.npc.fsm

Examples of games.stendhal.server.entity.npc.fsm.TransitionList


  private void dump(final SpeakerNPC npc) {
    dumpNPC(npc);
  }

  private void dumpNPC(final SpeakerNPC npc) {
    final TransitionList transitions = new TransitionList(npc.getTransitions());
    final Set<ConversationStates> states = transitions.getSourceStates();

    for (final ConversationStates state : states) {
      final Collection<Expression> triggers = transitions.getTriggersForState(state);
      for (final Expression trigger : triggers) {
        final List<Transition> trans = transitions.getTransitionsForStateAndTrigger(
            state, trigger);
        final Set<PreTransitionCondition> conditions = new HashSet<PreTransitionCondition>();
        for (final Transition tran : trans) {
          final PreTransitionCondition condition = tran.getCondition();
          if (condition != null) {
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.fsm.TransitionList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.