|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--mstar.Room
A class that represents a room in the collaborative environment and information about that room including: name, description, database reference, commands, obvious exits, possible and fallback exits, contents and chatter. In addition there are methods for creating psuedo-MAAS-Neotek representations of the room that can be written to map files on disk, and methods for adding contents and exits.
| Constructor Summary | |
Room()
This object represents a room in the Mud/MOO. |
|
Room(java.lang.String name)
This object represents a room in the Mud/MOO. |
|
| Method Summary | |
void |
addBadExit(Exit e)
This routine adds an exit to the bad exit list. |
void |
addContents(java.lang.String c)
This routine adds contents to the list of contents for this room. |
void |
addGoodExit(Exit e)
This routine adds an exit to the good exit list. |
void |
addSuspectExit(Exit e)
|
void |
clearVisitedExits()
Deprecated. |
boolean |
containsObject(java.lang.String object)
This routine determines if an object is contained in this room. |
boolean |
equals(Room r)
This routine determines if the room r is the same as this room. |
boolean |
exitExists(int e)
This routine determines if this room has an exit that points to a specific room. |
Exit[] |
getBadExits()
This routine returns the bad exits that are currently known for this room. |
java.lang.String[] |
getChatter()
This routine returns an array of stored chatter for this room. |
java.lang.String[] |
getCommands()
This routine returns the shown commands for this room. |
java.lang.String[] |
getContents()
This routine returns a list of contents that were seen in this room. |
java.lang.String |
getDBReference()
This routine gets the database reference for this room. |
java.lang.String |
getDescription()
This routine gets the description for this room. |
Exit |
getExit(int e)
This routine returns an exit that points to a specific room. |
java.lang.String[] |
getFallbackExits()
This routine returns the list of fallback exits. |
java.util.GregorianCalendar |
getFirstIn()
This routine gets the time that this room was first entered. |
Exit[] |
getGoodExits()
This routine returns the good exits that are currently known for this room. |
int |
getId()
This routine gets the numeric identifier for this room. |
java.util.GregorianCalendar |
getLastIn()
This routine gets the last time that this room was entered. |
java.lang.String |
getName()
This routine gets the name of this room. |
java.lang.String |
getNextUnexploredExit()
This routine returns the next unexplored exit for this room if one exits. |
Exit |
getNextUnvisitedExit()
Deprecated. |
java.lang.String[] |
getPossibleExits()
This routine returns the possible exits for this room. |
java.lang.String[] |
getShownExits()
This routine returns the shown exits for this room. |
Exit[] |
getSuspectExits()
This routine returns the suspect exits that are currently known for this room. |
long |
getTotalTimeIn()
This routine gets the total time in this room. |
boolean |
getUseFallbackExits()
This routine returns whether or not fallback exits should be used in finding exits in the room. |
boolean |
getUsePossibleExits()
This routine returns whether or not possible exits should be used in finding exits in the room. |
boolean |
getVisited()
Deprecated. |
boolean |
hasConfusingPathTo()
This routine returns whether the path to this room is confusing. |
boolean |
hasUnexploredExits()
This routine determines if this room has any unexplored exits. |
boolean |
hasUnvisitedExits()
Deprecated. |
void |
moveGoodExitToSuspectExit(Exit e)
|
void |
removeBadExit(Exit e)
This routine removes an exit from the bad exits list. |
void |
removeGoodExit(Exit e)
This routine removes an exit from the good exits list. |
void |
setChatter(java.util.Vector v)
This routine sets the chatter vector. |
void |
setCommands(java.lang.String[] commands)
This routine sets the shown commands for this room. |
void |
setConfusingPathTo(boolean confusingPathTo)
This routine sets whether this room has a confusing path to it. |
void |
setDBReference(java.lang.String dbReference)
This routine sets the database reference for this room. |
void |
setDescription(java.lang.String description)
This routine sets the description for this room. |
void |
setFallbackExits(java.lang.String[] fallbackExits)
This routine sets the fallback exits. |
void |
setFirstIn(java.util.GregorianCalendar firstIn)
This routine sets the time that this room was first entered. |
void |
setId(int id)
This routine sets the numeric identifier for this room. |
void |
setLastIn(java.util.GregorianCalendar lastIn)
This routine sets the last time that this room was entered. |
void |
setName(java.lang.String name)
This routine sets the name of this room. |
void |
setPossibleExits(java.lang.String[] possibleExits)
This routine sets the possible exits for this room. |
void |
setShownExits(java.lang.String[] shownExits)
This routine sets the shown exits for this room. |
void |
setTotalTimeIn(long totalTimeIn)
This routine sets the total time in this room. |
void |
setUseFallbackExits(boolean useFallbackExits)
This routine sets whether or not fallback exits are used in finding exits in the room. |
void |
setUsePossibleExits(boolean usePossibleExits)
This routine sets whether or not possible exits are used in finding exits in the room. |
void |
setVisited(boolean visited)
Deprecated. |
java.lang.String |
shownExitsToString()
This routine returns the shown exits for this room as a string. |
java.lang.String |
toMap()
This routine returns the String that represents this room as a Mass NEOTEK room object. |
java.lang.String |
toString()
This routine returns the String representation for this room. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Room()
public Room(java.lang.String name)
name - the name of this room.| Method Detail |
public void setId(int id)
id - the numeric identifier for this room.public int getId()
public void setName(java.lang.String name)
name - the name of this room. This is generally derived from
the room description returned by the Mud/MOO.public java.lang.String getName()
public void setDBReference(java.lang.String dbReference)
dbReference - the database reference for this room.public java.lang.String getDBReference()
public void setDescription(java.lang.String description)
description - the description of this room.public java.lang.String getDescription()
public void setChatter(java.util.Vector v)
v - the chatter vector to be associated with this
room.public java.lang.String[] getChatter()
public void addContents(java.lang.String c)
c - the content item to be added to the list.public java.lang.String[] getContents()
public void setUsePossibleExits(boolean usePossibleExits)
usePossibleExits - if true use possible exits, if false do not
use possible exits in finding exits in this
room.public boolean getUsePossibleExits()
public void setUseFallbackExits(boolean useFallbackExits)
useFallbackExits - if true use fallback exits, if false do not
use fallback exits in finding exits in this
room.public boolean getUseFallbackExits()
public void setFallbackExits(java.lang.String[] fallbackExits)
fallbackExits - a list of exits to try, for example a
typical list of fallback exits might
include:
public java.lang.String[] getFallbackExits()
public boolean hasUnexploredExits()
public java.lang.String getNextUnexploredExit()
public boolean hasUnvisitedExits()
public Exit getNextUnvisitedExit()
public Exit getExit(int e)
e - the identifier of the room that
the exit should point to.public boolean exitExists(int e)
e - the identifier of the room that the
exit should point to.public void setShownExits(java.lang.String[] shownExits)
shownExits - a list of exits that were shown in the Mud/MOO
description for this room.public java.lang.String[] getShownExits()
public void setPossibleExits(java.lang.String[] possibleExits)
possibleExits - a list of exits that were derived from the
Mud/MOO description for this room.public java.lang.String[] getPossibleExits()
public void setCommands(java.lang.String[] commands)
commands - a list of commands for this room.public java.lang.String[] getCommands()
public void setVisited(boolean visited)
public boolean getVisited()
public void addGoodExit(Exit e)
e - the exit to add to the good exit list.public void addBadExit(Exit e)
e - the exit to add to the bad exit list.public void addSuspectExit(Exit e)
public void removeGoodExit(Exit e)
e - the exit to be removed.public void removeBadExit(Exit e)
e - the exit to be removed.public void moveGoodExitToSuspectExit(Exit e)
public Exit[] getGoodExits()
public Exit[] getBadExits()
public Exit[] getSuspectExits()
public void clearVisitedExits()
public void setConfusingPathTo(boolean confusingPathTo)
confusingPathTo - true if this room has a confusing path to
it.public boolean hasConfusingPathTo()
public boolean equals(Room r)
r - the room to be checked.public java.lang.String toString()
public java.lang.String toMap()
public void setFirstIn(java.util.GregorianCalendar firstIn)
firstIn - the time this room was first entered.public java.util.GregorianCalendar getFirstIn()
public void setLastIn(java.util.GregorianCalendar lastIn)
lastIn - the time this room was last entered.public java.util.GregorianCalendar getLastIn()
public void setTotalTimeIn(long totalTimeIn)
totalTimeIn - the total time that the robot
was in this room.public long getTotalTimeIn()
public java.lang.String shownExitsToString()
public boolean containsObject(java.lang.String object)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||