com.planet_ink.coffee_mud.WebMacros.grinder
Class GrinderFlatMap
java.lang.Object
com.planet_ink.coffee_mud.WebMacros.grinder.GrinderFlatMap
- Direct Known Subclasses:
- GrinderMap
public class GrinderFlatMap
- extends java.lang.Object
Method Summary |
boolean |
anythingThatDirection(GrinderRoom room,
int direction)
|
void |
clusterSet(java.util.List<java.util.List<GrinderRoom>> sets)
|
protected int |
findRelGridDir(GrinderRoom room,
java.lang.String roomID)
|
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)
|
int[] |
newXY(int[] xy,
int dir)
|
void |
placeRooms()
|
void |
placeRoomsII()
|
void |
rebuildGrid()
|
void |
rePlaceRooms()
|
protected java.lang.String |
roomColorStyle(GrinderRoom GR)
|
java.util.Vector<GrinderRoom> |
scoreRoom(java.util.Map<java.lang.String,GrinderRoom> H,
GrinderRoom room,
java.util.HashSet<java.lang.String> roomsDone,
boolean finalPosition)
|
java.util.List<GrinderRoom> |
scoreRoomII(java.util.Map<java.lang.String,GrinderRoom> H,
GrinderRoom room,
java.util.Set<java.lang.String> roomsDone)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
areaMap
protected java.util.List<GrinderRoom> areaMap
hashRooms
protected java.util.Map<java.lang.String,GrinderRoom> hashRooms
Xbound
protected int Xbound
Ybound
protected int Ybound
Ystart
protected int Ystart
Xstart
protected int Xstart
area
protected Area area
debug
protected boolean debug
boundsXYXY
protected int[] boundsXYXY
CLUSTERSIZE
protected static final int CLUSTERSIZE
- See Also:
- Constant Field Values
GrinderFlatMap
public GrinderFlatMap()
GrinderFlatMap
public GrinderFlatMap(Area A,
int[] xyxy)
getDistanceFrom
public double getDistanceFrom(int[] xy1,
int[] xy2)
rebuildGrid
public void rebuildGrid()
placeRooms
public void placeRooms()
placeRoomsII
public void placeRoomsII()
clusterSet
public void clusterSet(java.util.List<java.util.List<GrinderRoom>> sets)
rePlaceRooms
public void rePlaceRooms()
getRoom
public GrinderRoom getRoom(java.lang.String ID)
anythingThatDirection
public boolean anythingThatDirection(GrinderRoom room,
int direction)
scoreRoomII
public java.util.List<GrinderRoom> scoreRoomII(java.util.Map<java.lang.String,GrinderRoom> H,
GrinderRoom room,
java.util.Set<java.lang.String> roomsDone)
scoreRoom
public java.util.Vector<GrinderRoom> scoreRoom(java.util.Map<java.lang.String,GrinderRoom> H,
GrinderRoom room,
java.util.HashSet<java.lang.String> roomsDone,
boolean finalPosition)
getHTMLTable
public java.lang.StringBuffer getHTMLTable(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq)
roomColorStyle
protected java.lang.String roomColorStyle(GrinderRoom GR)
getRoomInDir
protected GrinderRoom getRoomInDir(GrinderRoom room,
int d)
findRelGridDir
protected int findRelGridDir(GrinderRoom room,
java.lang.String roomID)
getDoorLabelGif
protected java.lang.String getDoorLabelGif(int d,
GrinderRoom room,
com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq)
newXY
public int[] newXY(int[] xy,
int dir)
getHTMLMap
public java.lang.StringBuffer getHTMLMap(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq)
getHTMLMap
public java.lang.StringBuffer getHTMLMap(com.planet_ink.coffee_web.interfaces.HTTPRequest httpReq,
int roomSize)