|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object AdvMotionTableEntry
public class AdvMotionTableEntry
This class is used to store a single entry in the motion table.
Constructor Summary | |
---|---|
AdvMotionTableEntry(String dir,
int room,
String key)
Creates a new motion table entry. |
Method Summary | |
---|---|
int |
getDestinationRoom()
Returns the room number to which a particular direction leads. |
String |
getDirection()
Returns the direction name from a motion table entry. |
String |
getKeyName()
Returns the name of the object required to travel along a locked passage, or null if the passage is open. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdvMotionTableEntry(String dir, int room, String key)
dir
- The string specifying the direction of motionroom
- The number of the destination roomkey
- The name of the key object, or null
if noneMethod Detail |
---|
public String getDirection()
public int getDestinationRoom()
public String getKeyName()
null
if the passage is open.
null
for none
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |