jurpe.dungeon.rpgmap
Class MapIterator

java.lang.Object
  extended by jurpe.dungeon.rpgmap.MapIterator
All Implemented Interfaces:
java.util.Iterator

public class MapIterator
extends java.lang.Object
implements java.util.Iterator


Constructor Summary
MapIterator(ILogicalMap rpgmap)
          An RpgMap Iterator
 
Method Summary
 boolean hasNext()
          True if the iterator has a next object
 Cell next()
          Get next object
 void remove()
          Remove is not supported by this iterator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapIterator

public MapIterator(ILogicalMap rpgmap)
An RpgMap Iterator

Parameters:
rpgmap - LogicalMap
Method Detail

hasNext

public boolean hasNext()
True if the iterator has a next object

Specified by:
hasNext in interface java.util.Iterator
Returns:
boolean

next

public Cell next()
          throws java.util.NoSuchElementException
Get next object

Specified by:
next in interface java.util.Iterator
Returns:
RpgMapCell
Throws:
java.util.NoSuchElementException

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Remove is not supported by this iterator

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException

Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net