com.planet_ink.coffee_mud.WebMacros.grinder
Class GrinderFlatMap

java.lang.Object
  extended by com.planet_ink.coffee_mud.WebMacros.grinder.GrinderFlatMap
Direct Known Subclasses:
GrinderMap

public class GrinderFlatMap
extends java.lang.Object


Field Summary
protected  Area area
           
protected  java.util.Vector areaMap
           
protected  int[] boundsXYXY
           
protected static int CLUSTERSIZE
           
protected  boolean debug
           
protected  java.util.Hashtable hashRooms
           
protected  int Xbound
           
protected  int Xstart
           
protected  int Ybound
           
protected  int Ystart
           
 
Constructor Summary
GrinderFlatMap()
           
GrinderFlatMap(Area A, int[] xyxy)
           
 
Method Summary
 boolean anythingThatDirection(GrinderRoom room, int direction)
           
 void clusterSet(java.util.Vector 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, ExternalHTTPRequests httpReq)
           
 java.lang.StringBuffer getHTMLMap(ExternalHTTPRequests httpReq)
           
 java.lang.StringBuffer getHTMLMap(ExternalHTTPRequests httpReq, int roomSize)
           
 java.lang.StringBuffer getHTMLTable(ExternalHTTPRequests 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 scoreRoom(java.util.Hashtable H, GrinderRoom room, java.util.HashSet roomsDone, boolean finalPosition)
           
 java.util.Vector scoreRoomII(java.util.Hashtable H, GrinderRoom room, java.util.HashSet roomsDone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

areaMap

protected java.util.Vector areaMap

hashRooms

protected java.util.Hashtable 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
Constructor Detail

GrinderFlatMap

public GrinderFlatMap()

GrinderFlatMap

public GrinderFlatMap(Area A,
                      int[] xyxy)
Method Detail

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.Vector 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.Vector scoreRoomII(java.util.Hashtable H,
                                    GrinderRoom room,
                                    java.util.HashSet roomsDone)

scoreRoom

public java.util.Vector scoreRoom(java.util.Hashtable H,
                                  GrinderRoom room,
                                  java.util.HashSet roomsDone,
                                  boolean finalPosition)

getHTMLTable

public java.lang.StringBuffer getHTMLTable(ExternalHTTPRequests 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,
                                           ExternalHTTPRequests httpReq)

newXY

public int[] newXY(int[] xy,
                   int dir)

getHTMLMap

public java.lang.StringBuffer getHTMLMap(ExternalHTTPRequests httpReq)

getHTMLMap

public java.lang.StringBuffer getHTMLMap(ExternalHTTPRequests httpReq,
                                         int roomSize)