Iterator for traversing terrain cells in a rectangular area.  
 More...
#include <TerrainRectangleArea.h>
|  | 
| const Terrain * | pTerrain | 
|  | Pointer to the terrain. 
 | 
|  | 
| int | currX | 
|  | 
| int | currZ | 
|  | Current cell indices. 
 | 
|  | 
| int | xStart | 
|  | 
| int | xEnd | 
|  | 
| int | zStart | 
|  | 
| int | zEnd | 
|  | Start and end indices. 
 | 
|  | 
Iterator for traversing terrain cells in a rectangular area. 
◆ Iterator()
      
        
          | TerrainRectangleArea::Iterator::Iterator | ( | const Terrain * | terrain, | 
        
          |  |  | int | xStart, | 
        
          |  |  | int | xEnd, | 
        
          |  |  | int | zStart, | 
        
          |  |  | int | zEnd, | 
        
          |  |  | int | x, | 
        
          |  |  | int | z ) | 
      
 
Constructs an iterator. 
- Parameters
- 
  
    | terrain | Pointer to the Terrain. |  | xStart | Starting X index. |  | xEnd | Ending X index (inclusive). |  | zStart | Starting Z index. |  | zEnd | Ending Z index (inclusive). |  | x | Current X index. |  | z | Current Z index. |  
 
 
 
◆ GetCellAABB()
◆ GetCellIndices()
      
        
          | std::pair< int, int > TerrainRectangleArea::Iterator::GetCellIndices | ( |  | ) | const | 
      
 
Gets the indices of the current cell. 
- Returns
- Pair of (x, z) indices. 
 
 
◆ operator!=()
      
        
          | bool TerrainRectangleArea::Iterator::operator!= | ( | const Iterator & | other | ) | const | 
      
 
Checks if two iterators are not equal. 
- Parameters
- 
  
  
- Returns
- True if not equal, false otherwise. 
 
 
◆ operator++()
Advances the iterator to the next cell. 
- Returns
- Reference to this iterator. 
 
 
The documentation for this class was generated from the following files: