granatier
BonusItem Class Reference
#include <bonusitem.h>
Inheritance diagram for BonusItem:
Signals | |
void | bonusItemDestroyed (BonusItem *bonusItem) |
Public Member Functions | |
BonusItem (Bonus *p_model, KGameRenderer *renderer) | |
~BonusItem () | |
void | initDestruction (int nExplosionID) |
void | setUndestroyable (int nExplosionID) |
Public Member Functions inherited from ElementItem | |
ElementItem (Element *p_model, KGameRenderer *renderer) | |
~ElementItem () | |
Element * | getModel () const |
QPainterPath | shape () const |
Additional Inherited Members | |
Public Slots inherited from ElementItem | |
virtual void | update (qreal p_x, qreal p_y) |
virtual void | updateGraphics (qreal svgScaleFactor) |
Protected Member Functions inherited from ElementItem | |
virtual void | updateGraphicsInternal (qreal svgScaleFactor) |
Protected Attributes inherited from ElementItem | |
QSize | m_itemSizeReal |
QSize | m_itemSizeSet |
Element * | m_model |
QSize | m_renderSize |
Detailed Description
This class is the graphical representation of a Bonus.
Definition at line 30 of file bonusitem.h.
Constructor & Destructor Documentation
BonusItem::BonusItem | ( | Bonus * | p_model, |
KGameRenderer * | renderer | ||
) |
Creates a new BonusItem instance.
- Parameters
-
p_model the Bonus model renderer the KGameRenderer
Definition at line 25 of file bonusitem.cpp.
BonusItem::~BonusItem | ( | ) |
Deletes the BonusItem instance.
Definition at line 33 of file bonusitem.cpp.
Member Function Documentation
|
signal |
signals the end of the destruction animation
- Parameters
-
bonusItem this bonus item
void BonusItem::initDestruction | ( | int | nExplosionID | ) |
Inits the destruction.
- Parameters
-
nExplosionID the explosion ID from the blast that hit the bonus
Definition at line 43 of file bonusitem.cpp.
void BonusItem::setUndestroyable | ( | int | nExplosionID | ) |
Sets the undestroyable explosion IDs.
- Parameters
-
nExplosionID the explosion that destroyed the block that contained this bonus and therefore can't destroy this bonus
Definition at line 38 of file bonusitem.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.