GrinderMap
public class GrinderFlatMap
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected Area |
area |
|
protected java.util.List<GrinderRoom> |
areaMap |
|
protected int[] |
boundsXYXY |
|
protected static int |
CLUSTERSIZE |
|
protected boolean |
debug |
|
protected java.util.Map<java.lang.String,GrinderRoom> |
hashRooms |
|
protected int |
Xbound |
|
protected int |
Xstart |
|
protected int |
Ybound |
|
protected int |
Ystart |
Constructor | Description |
---|---|
GrinderFlatMap() |
|
GrinderFlatMap(Area A,
int[] xyxy) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
anythingThatDirection(GrinderRoom room,
int direction) |
|
java.util.List<GrinderRoom> |
buildCluster(java.util.Map<java.lang.String,GrinderRoom> fullMapH,
GrinderRoom coreRoom,
java.util.Set<java.lang.String> outerRoomsDone,
boolean finalPosition,
boolean doTwoWay,
int[] directionsToDo) |
|
void |
clusterSet(java.util.List<java.util.List<GrinderRoom>> sets) |
|
protected int |
findRelGridDir(GrinderRoom room,
java.lang.String roomID) |
|
protected int[] |
getDirectionSet(int start,
int end,
int dir) |
|
double |
getDistanceFrom(int[] xy1,
int[] xy2) |
|
protected java.lang.String |
getDoorLabelGif(int d,
GrinderRoom room,
com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq) |
|
java.lang.StringBuffer |
getHTMLMap(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq) |
|
java.lang.StringBuffer |
getHTMLMap(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
int roomSize) |
|
java.lang.StringBuffer |
getHTMLTable(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq) |
|
GrinderRoom |
getRoom(java.lang.String ID) |
|
protected GrinderRoom |
getRoomInDir(GrinderRoom room,
int d) |
|
boolean |
isUnClusteredRoom(GrinderRoom R,
int d,
java.util.Set<java.lang.String> innerRoomsDone,
java.util.Set<java.lang.String> outerRoomsDone) |
|
int[] |
newXY(int[] xy,
int dir) |
|
void |
placeRooms() |
|
void |
placeRoomsII() |
|
void |
rebuildGrid() |
|
void |
rePlaceRooms() |
|
protected java.lang.String |
roomColorStyle(GrinderRoom GR) |
|
java.util.List<GrinderRoom> |
scoreRoomII(java.util.Map<java.lang.String,GrinderRoom> H,
GrinderRoom room,
java.util.Set<java.lang.String> roomsDone) |
protected java.util.List<GrinderRoom> areaMap
protected java.util.Map<java.lang.String,GrinderRoom> hashRooms
protected int Xbound
protected int Ybound
protected int Ystart
protected int Xstart
protected Area area
protected boolean debug
protected int[] boundsXYXY
protected static final int CLUSTERSIZE
public GrinderFlatMap()
public GrinderFlatMap(Area A, int[] xyxy)
public double getDistanceFrom(int[] xy1, int[] xy2)
public void rebuildGrid()
public void placeRooms()
public void placeRoomsII()
public void clusterSet(java.util.List<java.util.List<GrinderRoom>> sets)
public void rePlaceRooms()
public GrinderRoom getRoom(java.lang.String ID)
public boolean anythingThatDirection(GrinderRoom room, int direction)
public java.util.List<GrinderRoom> scoreRoomII(java.util.Map<java.lang.String,GrinderRoom> H, GrinderRoom room, java.util.Set<java.lang.String> roomsDone)
protected int[] getDirectionSet(int start, int end, int dir)
public boolean isUnClusteredRoom(GrinderRoom R, int d, java.util.Set<java.lang.String> innerRoomsDone, java.util.Set<java.lang.String> outerRoomsDone)
public java.util.List<GrinderRoom> buildCluster(java.util.Map<java.lang.String,GrinderRoom> fullMapH, GrinderRoom coreRoom, java.util.Set<java.lang.String> outerRoomsDone, boolean finalPosition, boolean doTwoWay, int[] directionsToDo)
public java.lang.StringBuffer getHTMLTable(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq)
protected java.lang.String roomColorStyle(GrinderRoom GR)
protected GrinderRoom getRoomInDir(GrinderRoom room, int d)
protected int findRelGridDir(GrinderRoom room, java.lang.String roomID)
protected java.lang.String getDoorLabelGif(int d, GrinderRoom room, com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq)
public int[] newXY(int[] xy, int dir)
public java.lang.StringBuffer getHTMLMap(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq)
public java.lang.StringBuffer getHTMLMap(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq, int roomSize)