|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--morey.spore.ProximityList
A ProximityList holds lists of spores or claims that are near each other. ** Also used to enforce the border!!!! With later versions, this class will be gutted and replace by something with better time and space properties.
Here is a link to the source code
Link| Field Summary | |
protected java.util.Vector[][] |
chart
the table of all the spore neighbourhoods. |
protected static double |
DIST
a constant that describes the size of each mini-section used optimizes the number of checks per change to the List (will be figured out later) |
protected double |
H
the dimension of the board |
protected double |
W
the dimension of the board |
protected int |
xN
the chart dimensions |
protected int |
yN
the chart dimensions |
| Constructor Summary | |
ProximityList(double x,
double y)
simple constructor for a ProximityList. |
|
| Method Summary | |
void |
addLink(Link l)
add the l into every effected part of the chart
this will run into problems if the polygon is big compared to the space |
java.util.Enumeration |
checkLink(Link l)
This is ugly.... |
static void |
main(java.lang.String[] args)
some tests of ProximityList |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected static final double DIST
protected java.util.Vector[][] chart
protected double H
protected double W
protected int xN
protected int yN
| Constructor Detail |
public ProximityList(double x,
double y)
x - - the approximate width of the space for the spores to residey - - the approximate height of the space for the spores to reside| Method Detail |
public void addLink(Link l)
l into every effected part of the chart
this will run into problems if the polygon is big compared to the spacel - - the link to be added to the chartspublic java.util.Enumeration checkLink(Link l)
l - - the link to be check against the chartspublic java.lang.String toString()
public static void main(java.lang.String[] args)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||