|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--mstar.Exit
This class models exits in collaborative environments. Exits are the mechanisms by which characters can navigate from one room to another.
| Constructor Summary | |
Exit()
An object that is used to represent exits in a Mud/MOO. |
|
| Method Summary | |
void |
clearVisited()
Deprecated. |
boolean |
equal(Exit e)
This routine determines if this exit is equal to another exit. |
java.lang.String |
getDirection()
This routine gets the direction |
java.lang.String |
getExitName()
This routine gets the name associated with this exit. |
int |
getFromRoom()
This routine gets the room identifier of the room that this exit comes from. |
int |
getToRoom()
This routine gets the room identifier of the room that this exit goes to. |
boolean |
hasBeenVisited()
Deprecated. |
boolean |
isConfusing()
This routines determines if this is a confusing exit. |
void |
setConfusing()
This routine sets this exit to show that it is confusing. |
void |
setConfusing(boolean confusing)
This routine sets whether this is a confusing exit or not. |
void |
setDirection(java.lang.String direction)
This routine sets the direction (e.g., out, north, etc.) that this exit goes |
void |
setExitName(java.lang.String exitName)
This routine set the name associated with this exit. |
void |
setFromRoom(int fromRoom)
This routine sets the room identifier of the room that this exit comes from. |
void |
setToRoom(int toRoom)
This routine sets the room identifier of the room that this exit goes to. |
void |
setVisited()
Deprecated. |
void |
setVisited(boolean visited)
Deprecated. |
java.lang.String |
toString()
This routine returns a string that can be used in the Mud/MOO to "go" to the room. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Exit()
| Method Detail |
public void setExitName(java.lang.String exitName)
exitName - -- the name of the exitpublic java.lang.String getExitName()
public void setDirection(java.lang.String direction)
direction - -- the directionpublic java.lang.String getDirection()
public void setToRoom(int toRoom)
toRoom - -- the number of the room that this
exit goes to.public int getToRoom()
public void setFromRoom(int fromRoom)
fromRoom - -- the number of the room that this
exit comes from.public int getFromRoom()
public java.lang.String toString()
public void setVisited(boolean visited)
public void setVisited()
public void clearVisited()
public boolean hasBeenVisited()
public void setConfusing(boolean confusing)
confusing - -- determines if this exit should
be considered confusing.public void setConfusing()
public boolean isConfusing()
public boolean equal(Exit e)
e - -- the exit to be tested.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||