• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

granatier

  • sources
  • kde-4.14
  • kdegames
  • granatier
  • src
bonusitem.h
Go to the documentation of this file.
1 /*
2  * Copyright 2009 Mathias Kraus <k.hias@gmx.de>
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 
18 #ifndef BONUSITEM_H
19 #define BONUSITEM_H
20 
21 #include "elementitem.h"
22 
23 class Bonus;
24 class QTimer;
25 class KGameRenderer;
26 
30 class BonusItem : public ElementItem
31 {
32 
33  Q_OBJECT
34 
35 private:
36 
38  int m_undestroyableExplosionID;
39 
41  QTimer* m_destructionTimer;
42 
44  int m_destructionCounter;
45 
46 public:
47 
53  BonusItem(Bonus* p_model, KGameRenderer* renderer);
54 
58  ~BonusItem();
59 
64  void setUndestroyable(int nExplosionID);
65 
70  void initDestruction(int nExplosionID);
71 
72 private slots:
76  void destructionAnimation();
77 
78 signals:
83  void bonusItemDestroyed(BonusItem* bonusItem);
84 };
85 
86 #endif
Bonus
This class represents a Bonus for the Player.
Definition: bonus.h:29
BonusItem::~BonusItem
~BonusItem()
Deletes the BonusItem instance.
Definition: bonusitem.cpp:33
BonusItem
This class is the graphical representation of a Bonus.
Definition: bonusitem.h:30
QTimer
BonusItem::setUndestroyable
void setUndestroyable(int nExplosionID)
Sets the undestroyable explosion IDs.
Definition: bonusitem.cpp:38
ElementItem
This class is the graphical representation of a game Element.
Definition: elementitem.h:30
BonusItem::initDestruction
void initDestruction(int nExplosionID)
Inits the destruction.
Definition: bonusitem.cpp:43
BonusItem::bonusItemDestroyed
void bonusItemDestroyed(BonusItem *bonusItem)
signals the end of the destruction animation
elementitem.h
BonusItem::BonusItem
BonusItem(Bonus *p_model, KGameRenderer *renderer)
Creates a new BonusItem instance.
Definition: bonusitem.cpp:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

granatier

Skip menu "granatier"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal