Examples of toStringList()


Examples of antlr.CommonAST.toStringList()

      CalcParser parser = new CalcParser(lexer);
      // Parse the input expression
      parser.expr();
      CommonAST t = (CommonAST)parser.getAST();
      // Print the resulting tree out in LISP notation
      System.out.println(t.toStringList());
      CalcTreeWalker walker = new CalcTreeWalker();
      // Traverse the tree created by the parser
      walker.expr(t);
      t = (CommonAST)walker.getAST();
      System.out.println(t.toStringList());
View Full Code Here

Examples of antlr.CommonAST.toStringList()

      System.out.println(t.toStringList());
      CalcTreeWalker walker = new CalcTreeWalker();
      // Traverse the tree created by the parser
      walker.expr(t);
      t = (CommonAST)walker.getAST();
      System.out.println(t.toStringList());
    } catch(Exception e) {
      System.err.println("exception: "+e);
    }
  }
}
View Full Code Here

Examples of games.stendhal.server.util.ItemCollection.toStringList()

    }
    res.add("Vasi Elos asked me bring gems, gold and mithril to make a present of jewelled legs for his honey, Vera.");
    if ((getConditionForBeingInCollectionPhase()).fire(player,null,null)) {
      final ItemCollection missingItems = new ItemCollection();
      missingItems.addFromQuestStateString(questState);
      res.add("The jewelled legs still need " + Grammar.enumerateCollection(missingItems.toStringList()) + ".");
      return res;
    }
    res.add("Vasi Elos needs a base to add those gems I brought, to. He asked for shadow legs.");
    if ("legs".equals(questState)) { 
      return res;
View Full Code Here

Examples of games.stendhal.server.util.ItemCollection.toStringList()

    if ("rejected".equals(questState)) {
      res.add("I don't want to help Carmen. I guess she'll find someone else to help her.");
    } else if (!"done".equals(questState)) {
      final ItemCollection missingItems = new ItemCollection();
      missingItems.addFromQuestStateString(questState);
      res.add("I still need to bring Carmen " + Grammar.enumerateCollection(missingItems.toStringList()) + ".");
    } else {
      res.add("I helped Carmen and she can now continue her healing work.");
    }
    return res;
  }
View Full Code Here

Examples of games.stendhal.server.util.ItemCollection.toStringList()

             * QUEST_SLOT sub slot 0 holds a semicolon separated list of key=value token pairs.
             * Do not use player.getQuest(QUEST_SLOT, 0) as that would only retrieve the first token pair.
             */
            missingItems.addFromQuestStateString(player.getQuest(QUEST_SLOT));
            res.add("I'm helping her replenish her stock of supplies for preparing her Koboldish Torcibud."
                + " I still have to bring her " + Grammar.enumerateCollection(missingItems.toStringList()));
        }

        return res;
    }
View Full Code Here

Examples of games.stendhal.server.util.ItemCollection.toStringList()

    if ("rejected".equals(questState)) {
      res.add("I think getting involved in these politics is a bad idea.");
    } else if (!"done".equals(questState) && !"reward".equals(questState)) {
      final ItemCollection missingItems = new ItemCollection();
      missingItems.addFromQuestStateString(questState);
      res.add(Grammar.enumerateCollection(missingItems.toStringList()) + " are still needed for the crown.");
    } else if ("reward".equals(questState)) { 
      res.add("I got the precious gems to make a crown, and " + REWARD_NPC_NAME + " has been instructed to give me my reward.");
    } else {
      res.add("I got the precious gems to make a crown, and " + REWARD_NPC_NAME + " rewarded me with a boost to my powers.");
    }
View Full Code Here

Examples of games.stendhal.server.util.ItemCollection.toStringList()

    if ("rejected".equals(questState)) {
      res.add("I don't want to help Ortiv at the moment. He should go out and take the ingredients by himself.");
    } else if (!"done".equals(questState)) {
      final ItemCollection missingItems = new ItemCollection();
      missingItems.addFromQuestStateString(questState);
      res.add("I still need to bring Ortiv " + Grammar.enumerateCollection(missingItems.toStringList()) + ".");
    } else {
      res.add("I helped Ortiv. Now he can sleep safe again in his bed. He rewarded me with some XP and an assassin dagger for my use.");
    }
    return res;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.