|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.maps.GameHashIterator
This class does a straight MxN search of every square in the requested rectangle.
Constructor Summary | |
GameHashIterator(GameHashMap map,
Rectangle r)
Constructs a new one over the specified rectangle. |
Method Summary | |
boolean |
hasNext()
Returns true if there's another item available in the iteration. |
java.lang.Object |
next()
Returns the next item. |
void |
remove()
Removes the last item returned by next(); |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GameHashIterator(GameHashMap map, Rectangle r)
map
- the game mapr
- the rectangle to iterateMethod Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |