public class Exit
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
boolean | 
isStart
If the exit is start 
 | 
boolean | 
isTrap
If there is a trap in this exit 
 | 
Room | 
room
The room this exit leads to 
 | 
java.lang.String | 
trap
Type of trap 
 | 
java.lang.String | 
type
The type of exit 
 | 
| Constructor and Description | 
|---|
Exit(Room room)
Constructs a random exit to a given room 
 | 
Exit(Room room,
    java.lang.String type)
Constructs a exit of a give type to a room 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Exit | 
Start()
Gives the entry 
 | 
java.lang.String | 
toLongString()
Gives this exits description 
 | 
java.lang.String | 
toString()  | 
public Room room
public java.lang.String type
public boolean isStart
public boolean isTrap
public java.lang.String trap
public Exit(Room room)
room - Room to lead topublic Exit(Room room, java.lang.String type)
room - Room to lead totype - Type of exitpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toLongString()
public static Exit Start()