moo
Class MOOExit

moo.MOOObject
  |
  +--moo.MOOExit

public class MOOExit
extends MOOObject


Field Summary
 protected StringendRoom
           
 protected StringexitSpecs
           
 protected MOORoommrEndRoom
           
 protected MOORoommrStartRoom
           
 protected static StringPARENT
           
 protected StringstartRoom
           

Fields inherited from class moo.MOOObject
aliases, mooNumber, name, parent, propertyList, verbList

Constructor Summary
MOOExit()
           

Method Summary
 voidcreate(PrintWriter out, BufferedReader mooResponse, MOOOut display)
          Assumes that both start and end rooms have alread been created in the MOO and that we can retrieve valid room #'s for both of them.
 voidsetEndRoom(String room)
           
 voidsetEndRoom(MOORoom room)
           
 voidsetExitSpecs(String specs)
          Assumptions: We assume that specs is a string that is a valid LambdaMOO exit specifier.
 voidsetParent(String newParent)
           
 voidsetStartRoom(String room)
           
 voidsetStartRoom(MOORoom room)
           
 voidupdate(PrintWriter out, BufferedReader mooRespons, MOOOut display)
           

Methods inherited from class moo.MOOObject
addAlias, addProperty, addVerb, getMOONum, getName, getParent, getPropertyList, getVerbList, setName, toString

Field Detail

endRoom

protected String endRoom

exitSpecs

protected String exitSpecs

mrEndRoom

protected MOORoom mrEndRoom

mrStartRoom

protected MOORoom mrStartRoom

PARENT

protected static String PARENT

startRoom

protected String startRoom
Constructor Detail

MOOExit

public MOOExit()
Method Detail

create

public void create(PrintWriter out, BufferedReader mooResponse, MOOOut display)
throws java.io.IOException,
MOOException
Assumes that both start and end rooms have alread been created in the MOO and that we can retrieve valid room #'s for both of them. If not, there is no way for us to create the exit, and this method will hang.

setEndRoom

public void setEndRoom(String room)

setEndRoom

public void setEndRoom(MOORoom room)

setExitSpecs

public void setExitSpecs(String specs)
Assumptions: We assume that specs is a string that is a valid LambdaMOO exit specifier. Furthermore, we assume that this exit (and hence this exit specifier) represents a _one way_ exit. If you want exits going both ways, you should create two seperate MOOExit objects. This is due to the problem of parsing the MOO response to retrieve the assigned object number, which will not work properly if you try to create two exits w/ 1 exit specifier. 7/29: Added rudimentary MOO validation - now it strips out spaces automatically -- sh

setParent

public void setParent(String newParent)

setStartRoom

public void setStartRoom(String room)

setStartRoom

public void setStartRoom(MOORoom room)

update

public void update(PrintWriter out, BufferedReader mooRespons, MOOOut display)
throws java.io.IOException,
MOOException