|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjurpe.dungeon.rpgmap.Passage
public class Passage
Passage is an open or closed passage between two RPGMAP cells. Can contain a door or not.
Constructor Summary | |
---|---|
Passage(Direction dir)
Constructor. |
Method Summary | |
---|---|
Direction |
getDirection()
Return the direction of this passage. |
Door |
getDoor()
Get door, if any, in this passage |
boolean |
hasDoor()
If this passage has a door it will return true |
boolean |
isClosed()
Returns true if this passage is closed |
boolean |
isOpened()
Returns true if this passage is opened |
void |
setClosed()
Set the passage closed |
void |
setDoor(Door door)
Set a door in this passage |
void |
setOpen()
Set the passage open |
void |
setOpen(boolean open)
Set the passage open |
java.lang.String |
toString()
A representation of the passage: O = opened C = closed If the passage has a door, a representation of the door is added |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Passage(Direction dir)
Method Detail |
---|
public Direction getDirection()
public boolean isClosed()
public boolean isOpened()
public void setClosed()
public void setOpen()
public void setOpen(boolean open)
open
- If this passage is open, set to truepublic void setDoor(Door door)
public Door getDoor()
public boolean hasDoor()
public java.lang.String toString()
toString
in class java.lang.Object
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |