fi.utu.cs.hockey.ai
Class AI.PlayerIterator

java.lang.Object
  |
  +--fi.utu.cs.hockey.ai.AI.PlayerIterator
Enclosing class:
AI

public static class AI.PlayerIterator
extends java.lang.Object

A class for iterating player positions.


Method Summary
 boolean hasNext()
          Returns true, if the positions are not exhausted.
 int next()
          Returns the next position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
Returns true, if the positions are not exhausted.


next

public int next()
Returns the next position.

Throws:
java.util.NoSuchElementException - positions are exhausted.