2
* Copyright 2007-2008 Thomas Gallinari <tg8187@yahoo.fr>
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2 of
7
* the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
const qreal Cell::SIZE = 20.0;
23
Cell::Cell() : m_type(Cell::WALL), m_element(nullptr), m_cost(0), m_parent(nullptr)
33
Cell::Type Cell::getType() const
38
void Cell::setType(Cell::Type p_type)
43
Element *Cell::getElement() const
48
void Cell::setElement(Element *p_element)
50
m_element = p_element;
53
int Cell::getCost() const
58
void Cell::setCost(const int p_cost)
63
Cell *Cell::getParent() const
68
void Cell::setParent(Cell *p_parent)