kapman
#include <cell.h>
|
| static const qreal | SIZE = 20.0 |
| |
This class represents a Cell of the Maze.
Definition at line 28 of file cell.h.
The Cell possible types.
| Enumerator |
|---|
| WALL |
|
| CORRIDOR |
|
| GHOSTCAMP |
|
Definition at line 36 of file cell.h.
| int Cell::getCost |
( |
| ) |
const |
Gets the Cell cost for A* pathfinding algorithm.
- Returns
- the Cell cost for A* pathfinding algorithm
Definition at line 47 of file cell.cpp.
| Element * Cell::getElement |
( |
| ) |
const |
| Cell * Cell::getParent |
( |
| ) |
const |
Gets the parent Cell of this Cell for A* pathfinding algorithm.
- Returns
- the Cell parent for A* pathfinding algorithm
Definition at line 55 of file cell.cpp.
| void Cell::setCost |
( |
const int |
p_cost | ) |
|
Sets a cost for the Cell, for A* pathfinding algorithm.
- Parameters
-
| p_cost | the cost of the Cell for A* pathfinding algorithm |
Definition at line 51 of file cell.cpp.
| void Cell::setElement |
( |
Element * |
p_element | ) |
|
| void Cell::setParent |
( |
Cell * |
p_parent | ) |
|
Sets the parent Cell of this Cell for A* pathfinding algorithm.
- Parameters
-
| p_parent | the parent of the Cell for A* pathfinding algorithm |
Definition at line 59 of file cell.cpp.
Sets the Cell type.
- Parameters
-
| p_type | the new type to set |
Definition at line 35 of file cell.cpp.
| const qreal Cell::SIZE = 20.0 |
|
static |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:15 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.