libkdegames
kgrid2d.h File Reference
#include <math.h>
#include <QtCore/QPair>
#include <QtCore/QVector>
#include <QtCore/QTextStream>
#include <kglobal.h>
Include dependency graph for kgrid2d.h:

Go to the source code of this file.
Namespaces | |
| namespace | KGrid2D |
Classes | |
| class | KGrid2D::Generic< Type > |
| This template class represents a generic bidimensionnal grid. More... | |
| class | KGrid2D::Hexagonal< Type > |
| This template implements a hexagonal grid where hexagons form horizontal lines:. More... | |
| class | KGrid2D::HexagonalBase |
| This class contains static methods to manipulate coordinates on an hexagonal grid where hexagons form horizontal lines:. More... | |
| class | KGrid2D::Square< T > |
| This template is a Generic implementation for a square bidimensionnal grid (SquareBase). More... | |
| class | KGrid2D::SquareBase |
| kgamecanvas.hThis class contains static methods to manipulate coordinates for a square bidimensionnal grid. More... | |
Typedefs | |
| typedef QPair< int, int > | KGrid2D::Coord |
| typedef QList< Coord > | KGrid2D::CoordList |
Functions | |
| KGrid2D::Coord | maximum (const KGrid2D::Coord &c1, const KGrid2D::Coord &c2) |
| KGrid2D::Coord | minimum (const KGrid2D::Coord &c1, const KGrid2D::Coord &c2) |
| KGrid2D::Coord | operator+ (const KGrid2D::Coord &c1, const KGrid2D::Coord &c2) |
| KGrid2D::Coord | operator- (const KGrid2D::Coord &c1, const KGrid2D::Coord &c2) |
| template<class Type> | |
| QDataStream & | operator<< (QDataStream &s, const KGrid2D::Generic< Type > &m) |
| QTextStream & | operator<< (QTextStream &s, const KGrid2D::CoordList &list) |
| QTextStream & | operator<< (QTextStream &s, const KGrid2D::Coord &c) |
| template<class Type> | |
| QDataStream & | operator>> (QDataStream &s, KGrid2D::Generic< Type > &m) |
Function Documentation
| KGrid2D::Coord maximum | ( | const KGrid2D::Coord & | c1, | |
| const KGrid2D::Coord & | c2 | |||
| ) | [inline] |
| KGrid2D::Coord minimum | ( | const KGrid2D::Coord & | c1, | |
| const KGrid2D::Coord & | c2 | |||
| ) | [inline] |
| KGrid2D::Coord operator+ | ( | const KGrid2D::Coord & | c1, | |
| const KGrid2D::Coord & | c2 | |||
| ) | [inline] |
| KGrid2D::Coord operator- | ( | const KGrid2D::Coord & | c1, | |
| const KGrid2D::Coord & | c2 | |||
| ) | [inline] |
template<class Type>
| QDataStream& operator<< | ( | QDataStream & | s, | |
| const KGrid2D::Generic< Type > & | m | |||
| ) | [inline] |
| QTextStream& operator<< | ( | QTextStream & | s, | |
| const KGrid2D::CoordList & | list | |||
| ) | [inline] |
| QTextStream& operator<< | ( | QTextStream & | s, | |
| const KGrid2D::Coord & | c | |||
| ) | [inline] |
template<class Type>
| QDataStream& operator>> | ( | QDataStream & | s, | |
| KGrid2D::Generic< Type > & | m | |||
| ) | [inline] |
KDE 4.2 API Reference