jurpe.dungeon.rpgmap
Class CellPassages

java.lang.Object
  extended by jurpe.dungeon.rpgmap.CellPassages
All Implemented Interfaces:
java.io.Serializable

public class CellPassages
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
CellPassages()
          Constructor
 
Method Summary
 boolean areAllClosed()
          Returns true when all the passages are closed.
 Passage getLeftward(Direction dir)
          Get the leftward passage respect to dir
 Passage getPassage(Direction dir)
          Get the passage in direction d
 Passage[] getPassages()
          Get all passages
 Passage getRightward(Direction dir)
           
 void setAll(boolean open)
          Set all passages open or closed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellPassages

public CellPassages()
Constructor

Method Detail

setAll

public void setAll(boolean open)
Set all passages open or closed

Parameters:
open - If true set all passages open, else closed.

areAllClosed

public boolean areAllClosed()
Returns true when all the passages are closed.

Returns:
Returns true when all the passages are closed.

getPassage

public Passage getPassage(Direction dir)
Get the passage in direction d

Parameters:
dir - Direction
Returns:
The passage in direction dir

getPassages

public Passage[] getPassages()
Get all passages

Returns:
All passages

getLeftward

public Passage getLeftward(Direction dir)
Get the leftward passage respect to dir

Parameters:
dir - Direction
Returns:
Passage left to dir

getRightward

public Passage getRightward(Direction dir)

Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net