Package org.groovymud.object.room

Examples of org.groovymud.object.room.Exit


public class ExitView implements View {

  private transient Registry registry;

  public void writeLookBody(Alive looker, MudObject target) {
    Exit exit = (Exit) target;

    getRegistry().getMudObject(exit.getDestination().getBeanId());

    target.getView().writeLookBody(looker, target);
  }
View Full Code Here


    try {
      stream.write(colorizeText("There " + (exits.size() == 1 && exits.size() != 0 ? "is" : "are") + " " + pluralize("exit", exits.size()) + ": ", CYAN));
      Iterator iter = exits.iterator();
      int i = 0;
      while (iter.hasNext()) {
        Exit exit = (Exit) iter.next();
        stream.write(colorizeText(exit.getDirection() + (i < exits.size() - 1 ? ", " : "\r\n"), WHITE));
        i++;
      }
    } catch (IOException e) {
      logger.error(e, e);
    }
View Full Code Here

TOP

Related Classes of org.groovymud.object.room.Exit

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.