Improved Doorway Placement

Doorways are now placed in different ways, depending on the dimensions
of the walls that they're on. This includes that large walls get two
doorways connecting to the same room.
This commit is contained in:
SenseiKiwi
2013-12-30 02:44:18 -04:00
parent 7afcfedbde
commit 3574b0468b
2 changed files with 86 additions and 13 deletions

View File

@@ -33,4 +33,19 @@ public class DoorwayData
{
return axis;
}
public int width()
{
return (maxCorner.getX() - minCorner.getX() + 1);
}
public int height()
{
return (maxCorner.getY() - minCorner.getY() + 1);
}
public int length()
{
return (maxCorner.getZ() - minCorner.getZ() + 1);
}
}