com.aranai.dungeonator.dungeonchunk
Class DungeonChunkDoorway

java.lang.Object
  extended by com.aranai.dungeonator.dungeonchunk.DungeonRoomDoorway

public class DungeonChunkDoorway
extends java.lang.Object

DungeonChunkDoorway represents a single doorway for a chunk. Provides access to meta data (doorway type, direction, and so forth).


Field Summary
private  byte direction
          The direction.
 
Constructor Summary
DungeonChunkDoorway(byte d)
          Instantiates a new dungeon chunk doorway.
 
Method Summary
 byte getDirection()
          Gets the direction of the doorway.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

direction

private byte direction
The direction.

Constructor Detail

DungeonChunkDoorway

public DungeonChunkDoorway(byte d)
Instantiates a new dungeon chunk doorway.

Parameters:
d - the direction attachment for the doorway
Method Detail

getDirection

public byte getDirection()
Gets the direction of the doorway.

Returns:
the direction