|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.world.maps.AreaList
Collects a list of areas the occupy the same location.
| Constructor Summary | |
|---|---|
AreaList()
Creates a new area list. |
|
AreaList(Area area)
Creates a new area list. |
|
| Method Summary | |
|---|---|
void |
add(Area area)
Adds a new area to this list. |
boolean |
contains(Area area)
Tests whether a given area is contained in this list. |
Area |
getArea(int index)
Returns a specific area from the area list. |
int |
getAreaCount()
Returns the number of areas in this list. |
static AreaList |
mergeUniqueAreas(AreaList list1,
AreaList list2)
Merges two area lists by creating a new list that contains only those areas that exist in but one of the two lists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AreaList(Area area)
area - the first area to add to the listpublic AreaList()
| Method Detail |
|---|
public void add(Area area)
area - the area to listpublic int getAreaCount()
public Area getArea(int index)
index - the index of the area
public boolean contains(Area area)
area - the area to check
public static AreaList mergeUniqueAreas(AreaList list1,
AreaList list2)
list1 - the first area listlist2 - the second area list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||