Package games.stendhal.common.parser

Examples of games.stendhal.common.parser.TriggerList


  public TriggerIsProducedItemOfClassCondition(final String clazz) {
    this.clazz = clazz;
  }

  public boolean fire(final Player player, final Sentence sentence, final Entity entity) {
    TriggerList triggers = new TriggerList (producerRegister.getProducedItemNames(clazz));
    return triggers.contains(sentence.getTriggerExpression());
  }
View Full Code Here


   *
   * @param trigger
   *            list of trigger
   */
  public TriggerInListCondition(final List<String> trigger) {
    triggers = new TriggerList(trigger);
  }
View Full Code Here

TOP

Related Classes of games.stendhal.common.parser.TriggerList

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.