iSectorIterator Struct Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
iSectorIterator Struct Reference
Crystal Space 3D Engine

An iterator to iterate over sectors. More...

`#include <iengine/sector.h>`

Inheritance diagram for iSectorIterator:

List of all members.

## Public Member Functions
virtual const csVector3 & | GetLastPosition () const =0
| Get last position that was used from Fetch.
virtual bool | HasNext () const =0
| Return true if there are more elements.
virtual iSector * | Next ()=0
| Return the next sector in the list and increment the iterator.
virtual void | Reset ()=0
| Reset the iterator to the first element.

## Detailed Description

An iterator to iterate over sectors.

Some functions in CS return this.

Main creators of instances implementing this interface:

- iEngine::GetNearbySectors()

Definition at line 599 of file sector.h.

## Member Function Documentation

virtual const csVector3& iSectorIterator::GetLastPosition | ( |  | ) | const`[pure virtual]`

Get last position that was used from Fetch.

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

virtual bool iSectorIterator::HasNext | ( |  | ) | const`[pure virtual]`

Return true if there are more elements.

virtual iSector* iSectorIterator::Next | ( |  | ) | `[pure virtual]`

Return the next sector in the list and increment the iterator.

Return 0 at the end.

virtual void iSectorIterator::Reset | ( |  | ) | `[pure virtual]`

Reset the iterator to the first element.

The documentation for this struct was generated from the following file:

- iengine/sector.h