20 package net.sf.gridarta.model.baseobject;
22 import java.util.EmptyStackException;
23 import java.util.Iterator;
24 import java.util.Stack;
50 current = container.iterator();
55 return current.hasNext();
60 final G gameObject = current.next();
64 if (gameObject.isEmpty()) {
67 while (!current.hasNext()) {
68 current = iteratorStack.pop();
70 }
catch (
final EmptyStackException ignore) {
74 iteratorStack.push(current);
75 current = gameObject.iterator();
81 public void remove() {
Base package of all Gridarta classes.
Reflects a game object (object on a map).
Iterator< G > current
The current iterator.
final Stack< Iterator< G > > iteratorStack
The Iterator stack.
GameObjects are the objects based on Archetypes found on maps.
Iterator for recursively iterating over GameObjectContainers.
Interface for MapArchObjects.