|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Vector
map.MapItemList
public class MapItemList
A Map ItemList is a collection of MapItems. A Map ItemList is generated by
assigning each MapPoint to a Unit from the Grid.
From that Units a predefined collection of Map Items per Unit is taken and
added to the MapItemList.
In Figure "MAP Grid" Map Point 1 is mapped to Unit
(0,3). From that Unit one or more Map Items are taken and added
to the Map ItemList. The procedure is repeated through all Map Points (=Path).
See build(java.util.Vector, map.Grid, boolean, int) for more details

MapItem,
MapPoint,
Grid,
Unit| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Constructor Summary | |
|---|---|
MapItemList(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
build(java.util.Vector mapPoints,
Grid grid,
boolean bRandomize,
int maxNumberOfMapItems)
Builds a MapItemList from the path, that was drawn by the user. |
| Methods inherited from class java.util.Vector |
|---|
addElement, capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toString, trimToSize |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapItemList(java.lang.String name)
| Method Detail |
|---|
public void build(java.util.Vector mapPoints,
Grid grid,
boolean bRandomize,
int maxNumberOfMapItems)
build is called with bRandomize
set to false and maxNumberOfMapItems set to 3.
For a Map Point placed in Unit X the first 3 Map Items of that Unit are
added to the MapItemList.
mapPoints - the list of Map Pointsgrid - the Grid containing Map ItemsbRandomize - if set to true Map Items from a Unit
are selected randomly.maxNumberOfMapItems - the maximum number of Map Items taken from
a Unit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||