Package org.groovymud.object.alive

Examples of org.groovymud.object.alive.Player.dest()


    Iterator<LoginShell> x = new HashSet<LoginShell>(getObjectRegistry().getActivePlayerHandles()).iterator();
    while (x.hasNext()) {
      LoginShell shell = x.next();
      if (shell.getConnection().isActive()) {
        Player p = getObjectRegistry().getPlayerByHandle(shell);
        p.dest(false);
      }
    }
  }

  public abstract ShutdownBehaviour createShutdownBehaviour();
View Full Code Here


    Iterator<LoginShell> x = new HashSet<LoginShell>(getObjectRegistry().getActivePlayerHandles()).iterator();
    while (x.hasNext()) {
      LoginShell shell = x.next();
      if (shell.getConnection().isActive()) {
        Player p = getObjectRegistry().getPlayerByHandle(shell);
        p.dest(false);
      }
    }
  }

  public abstract ShutdownBehaviour createShutdownBehaviour();
View Full Code Here

      // we need to dest this player if they say yes
      ConfirmationCallback alreadyPlaying = new ConfirmationCallback("You are already playing. Throw the other copy out?", ConfirmationCallback.INFORMATION, ConfirmationCallback.YES_NO_OPTION, ConfirmationCallback.NO);
      cb = createCallbackArray(alreadyPlaying);
      getCallbackHandler().handle(cb);
      if (alreadyPlaying.getSelectedIndex() == ConfirmationCallback.YES) {
        dupe.dest(true);
      } else {
        throw new FailedLoginException("cannot log in, already logged in!");
      }
    }
  }
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.