crystalspace.jbind.impl.engine.light
Class csLightIterator

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.engine.light.csLightIterator
All Implemented Interfaces:
iBase, iLightIterator, iPointer

public class csLightIterator
extends csBase
implements iLightIterator

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csLightIterator(iPointer nPointer)
           
 
Method Summary
 iSector getLastSector()
          Get the sector for the last fetched light.
 java.lang.String getName()
          Return the name of the interface
 int getVersion()
          Return the version of the interface
 boolean hasNext()
          Return true if there are more elements.
protected  boolean isNativePointerValidSafe(long pointer)
           
 iLight next()
          Get light from iterator.
 void reset()
          Restart iterator.
 
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Constructor Detail

csLightIterator

public csLightIterator(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase
See Also:
iBase.getVersion()

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase
See Also:
iBase.getName()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
csNativeObject.isNativePointerValidSafe(long)

hasNext

public boolean hasNext()
Description copied from interface: iLightIterator
Return true if there are more elements.

Specified by:
hasNext in interface iLightIterator
Returns:
See Also:
iLightIterator.hasNext()

next

public iLight next()
Description copied from interface: iLightIterator
Get light from iterator. Return 0 at end.

Specified by:
next in interface iLightIterator
Returns:
See Also:
iLightIterator.next()

getLastSector

public iSector getLastSector()
Description copied from interface: iLightIterator
Get the sector for the last fetched light.

Specified by:
getLastSector in interface iLightIterator
Returns:
See Also:
iLightIterator.getLastSector()

reset

public void reset()
Description copied from interface: iLightIterator
Restart iterator.

Specified by:
reset in interface iLightIterator
See Also:
iLightIterator.reset()