Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csSectorIt Class Reference

Iterator to iterate over sectors in the engine which are within a radius from a given point. More...

#include <engine.h>

List of all members.

Public Methods

 csSectorIt (csSector *sector, const csVector3 &pos, float radius)
 Construct an iterator and initialize to start.

 ~csSectorIt ()
 Destructor.

void Restart ()
 Restart iterator.

csSectorFetch ()
 Get sector from iterator. Return NULL at end.

const csVector3GetLastPosition ()
 Get last position that was used from Fetch. More...


Detailed Description

Iterator to iterate over sectors in the engine which are within a radius from a given point.

This iterator assumes there are no fundamental changes in the engine while it is being used. If changes to the engine happen the results are unpredictable.


Member Function Documentation

const csVector3 & csSectorIt::GetLastPosition ( ) [inline]
 

Get last position that was used from Fetch.

This can be different from 'pos' because of space warping.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000