Examples of notifyInSeconds()


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

      } else {
        open();
      }

      // register automatic close
      turnNotifier.notifyInSeconds(SECONDS_TO_STAY_OPEN, this);
    } else {
      // player may not use it
      if (isOpen()) {
        // close now to make visible that the entity is not allowed
        // to pass
View Full Code Here

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

    final TurnNotifier turnNotifier = SingletonRepository.getTurnNotifier();
   
    if (open) {
      setResistance(0);
      if (autoCloseDelay != 0) {
        turnNotifier.notifyInSeconds(autoCloseDelay, this);
      }
    } else {
      // Closing the gate - check there's nobody on the way
      if (getZone() != null)  {
        for (Entity entity : getZone().getEntitiesAt(getX(), getY())) {
View Full Code Here

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

     * If something was on the way, the closing failed.
     * Try again after the usual delay.
     */
    if (isOpen) {
      final TurnNotifier turnNotifier = SingletonRepository.getTurnNotifier();
      turnNotifier.notifyInSeconds(autoCloseDelay, this);
    }
  }
}
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.