moo
Class MOOExit
moo.MOOObject
|
+--moo.MOOExit
- public class MOOExit
- extends MOOObject
Method Summary |
void | create(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. |
void | setEndRoom(String room) |
void | setEndRoom(MOORoom room) |
void | setExitSpecs(String specs) Assumptions: We assume that specs is a string that is a valid LambdaMOO exit specifier. |
void | setParent(String newParent) |
void | setStartRoom(String room) |
void | setStartRoom(MOORoom room) |
void | update(PrintWriter out, BufferedReader mooRespons, MOOOut display) |
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
MOOExit
public MOOExit()
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