File indexing completed on 2023-10-01 08:02:04
0001 /* 0002 SPDX-FileCopyrightText: 2007-2008 Thomas Gallinari <tg8187@yahoo.fr> 0003 SPDX-FileCopyrightText: 2007-2008 Gaƫl Courcelle <gael.courcelle@gmail.com> 0004 SPDX-FileCopyrightText: 2007-2008 Alexia Allanic <alexia_allanic@yahoo.fr> 0005 SPDX-FileCopyrightText: 2007-2008 Johann Hingue <yoan1703@hotmail.fr> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #include "bonus.h" 0011 #include "kapman.h" 0012 0013 Bonus::Bonus(qreal p_x, qreal p_y, Maze *p_maze, int p_points) 0014 : Element(p_x, p_y, p_maze) 0015 { 0016 m_points = p_points; 0017 m_type = Element::BONUS; 0018 } 0019 0020 Bonus::~Bonus() = default; 0021 0022 void Bonus::doActionOnCollision(Kapman *p_kapman) 0023 { 0024 p_kapman->winPoints(this); 0025 } 0026 0027 void Bonus::setPoints(const int p_points) 0028 { 0029 m_points = p_points; 0030 } 0031 0032 #include "moc_bonus.cpp"