Examples of notifyInTurns()


Examples of games.stendhal.server.core.events.TurnNotifier.notifyInTurns()

      if (user.nextTo((Entity) base)) {
        if (useItem(userplayer)) {
          /* set the timer for the duration */
          final TurnNotifier notifier = SingletonRepository.getTurnNotifier();
          notifier.notifyInTurns(getAmount(), this);
          player = new WeakReference<Player>(userplayer);
          this.removeOne();
          user.notifyWorldAboutChanges();
        }
        result = true;
View Full Code Here

Examples of games.stendhal.server.core.events.TurnNotifier.notifyInTurns()

    // first remove all effects from previously used immunities to
    // restart the timer
   
    final TurnListener tl = new AntidoteEater(player);
    notifier.dontNotify(tl);
    notifier.notifyInTurns(item.getAmount(), tl);
    item.removeOne();
   
    return true;
   
  }
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.