KGrid2D::Hexagonal< Type > Class Template Reference
This template implements a hexagonal grid where hexagons form horizontal lines:.
More...
#include <kgrid2d.h>
Inheritance diagram for KGrid2D::Hexagonal< Type >:
[legend]Collaboration diagram for KGrid2D::Hexagonal< Type >:
[legend]List of all members.
Detailed Description
template<class Type>
class KGrid2D::Hexagonal< Type >
This template implements a hexagonal grid where hexagons form horizontal lines:.
(0,0) (0,1) (0,2)
(1,0) (1,1) (1,2)
(2,0) (2,1) (2,2)
@ since 3.2
Definition at line 459 of file kgrid2d.h.
Constructor & Destructor Documentation
Member Function Documentation
|
|
- Returns:
- the neighbours at distance
- Parameters:
-
| distance | of coordinate |
| c | the coordinate to use as the reference point |
| distance | distance to the neighbour (1 means at contact). |
| insideOnly | only add coordinates that are inside the grid. |
| all | returns all neighbours at distance equal and less than |
| distance | (the original coordinate is not included). |
Definition at line 493 of file kgrid2d.h. |
|
|
- Returns:
- the neighbours of coordinate
- Parameters:
-
| c | to the given set of coordinates |
| c | the coordiante to use as the reference point |
| insideOnly | only add coordinates that are inside the grid. |
Definition at line 474 of file kgrid2d.h. |
The documentation for this class was generated from the following file:
Generated on Wed Aug 23 18:06:37 2006 for libkdegames by
1.4.6