|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.kernel.GUIDCarrier
de.adom.jade.world.Complex
A complex is made up from a number of connected locations. The complex defines the types of locations.
| Constructor Summary | |
|---|---|
Complex(int size)
Defines a complex with a given size and a root location. |
|
| Method Summary | |
|---|---|
protected void |
connectLocations()
Connects all the locations in this complex. |
protected void |
connectLocations(int first,
int last)
Connects all the locations in this complex that belong to a certain range. |
Location |
getLocation(int index)
Returns a specific location. |
int |
getLocationCount()
Returns the number of locations in this complex. |
void |
setLocation(int index,
Location location)
Defines a new location in the complex. |
| Methods inherited from class de.adom.jade.kernel.GUIDCarrier |
|---|
getGUID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Complex(int size)
size - the size of the complex| Method Detail |
|---|
public void setLocation(int index,
Location location)
index - the index of the locationlocation - the locationpublic Location getLocation(int index)
index - the index of the location
public int getLocationCount()
protected void connectLocations()
protected void connectLocations(int first,
int last)
first - the start index of the locationslast - the last index of the locations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||