Package org.groovymud.shell.security

Examples of org.groovymud.shell.security.ActionCallback


        if (conf.getMessageType() != ConfirmationCallback.YES_NO_OPTION) {
          throw new UnsupportedCallbackException(conf, "cannot handle none YN questions yet");
        }
        confirmNewPlayer(conf);
      } else if (callbacks[x] instanceof ActionCallback) {
        ActionCallback cp = (ActionCallback) callbacks[x];
        if (cp.getAction().equals(ActionCallback.LOAD_ACTION)) {
          this.setPlayer(tryToloadPlayer(cp.getObjectName()));
          cp.setMudObject(player);
          if (player != null) {
            player.getSubject().getPrivateCredentials().add(player.getPlayerCredentials());
          }
        }
        if (cp.getAction().equals(ActionCallback.CREATE_ACTION)) {
          this.setPlayer(this.doRegisterNewPlayer(cp.getObjectName()));
          cp.setMudObject(player);
        }
        if (cp.getAction().equals(ActionCallback.EXISTS_ACTION)) {
          cp.setMudObject(getLoggedInPlayer(cp.getObjectName()));
        }
      } else if (callbacks[x] instanceof TextOutputCallback) {
        TextOutputCallback cb = (TextOutputCallback) callbacks[x];
        getExtendedTerminalIO().writeln(cb.getMessage());
      } else {
View Full Code Here


        if (conf.getMessageType() != ConfirmationCallback.YES_NO_OPTION) {
          throw new UnsupportedCallbackException(conf, "cannot handle none YN questions yet");
        }
        confirmNewPlayer(conf);
      } else if (callbacks[x] instanceof ActionCallback) {
        ActionCallback cp = (ActionCallback) callbacks[x];
        if (cp.getAction().equals(ActionCallback.LOAD_ACTION)) {
          this.setPlayer(tryToloadPlayer(cp.getObjectName()));
          cp.setMudObject(player);
          if (player != null) {
            player.getSubject().getPrivateCredentials().add(player.getPlayerCredentials());
          }
        }
        if (cp.getAction().equals(ActionCallback.CREATE_ACTION)) {
          this.setPlayer(this.doRegisterNewPlayer(cp.getObjectName()));
          cp.setMudObject(player);
        }
        if (cp.getAction().equals(ActionCallback.EXISTS_ACTION)) {
          cp.setMudObject(getLoggedInPlayer(cp.getObjectName()));
        }
      } else if (callbacks[x] instanceof TextOutputCallback) {
        TextOutputCallback cb = (TextOutputCallback) callbacks[x];
        getExtendedTerminalIO().writeln(cb.getMessage());
      } else {
View Full Code Here

        if (conf.getMessageType() != ConfirmationCallback.YES_NO_OPTION) {
          throw new UnsupportedCallbackException(conf, "cannot handle none YN questions yet");
        }
        confirmNewPlayer(conf);
      } else if (callbacks[x] instanceof ActionCallback) {
        ActionCallback cp = (ActionCallback) callbacks[x];
        if (cp.getAction().equals(ActionCallback.LOAD_ACTION)) {
          this.setPlayer(tryToloadPlayer(cp.getObjectName()));
          cp.setMudObject(player);
          if (player != null) {
            player.getSubject().getPrivateCredentials().add(player.getPlayerCredentials());
          }
        }
        if (cp.getAction().equals(ActionCallback.CREATE_ACTION)) {
          this.setPlayer(this.doRegisterNewPlayer(cp.getObjectName()));
          cp.setMudObject(player);
        }
        if (cp.getAction().equals(ActionCallback.EXISTS_ACTION)) {
          cp.setMudObject(getLoggedInPlayer(cp.getObjectName()));
        }
      } else if (callbacks[x] instanceof TextOutputCallback) {
        TextOutputCallback cb = (TextOutputCallback) callbacks[x];
        getExtendedTerminalIO().writeln(cb.getMessage());
      } else {
View Full Code Here

TOP

Related Classes of org.groovymud.shell.security.ActionCallback

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.