granatier
BlockItem Class Reference
#include <blockitem.h>
Inheritance diagram for BlockItem:
Signals | |
void | blockItemDestroyed (BlockItem *blockItem) |
Public Member Functions | |
BlockItem (Block *p_model, KGameRenderer *renderer) | |
~BlockItem () | |
Public Member Functions inherited from ElementItem | |
ElementItem (Element *p_model, KGameRenderer *renderer) | |
~ElementItem () | |
Element * | getModel () const |
QPainterPath | shape () const |
Protected Attributes | |
int | m_destructionCounter |
QTimer * | m_destructionTimer |
Protected Attributes inherited from ElementItem | |
QSize | m_itemSizeReal |
QSize | m_itemSizeSet |
Element * | m_model |
QSize | m_renderSize |
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) |
Detailed Description
This class is the graphical representation of a Block.
Definition at line 30 of file blockitem.h.
Constructor & Destructor Documentation
BlockItem::BlockItem | ( | Block * | p_model, |
KGameRenderer * | renderer | ||
) |
Creates a new BlockItem instance.
- Parameters
-
p_model the Block model renderer the KGameRenderer
Definition at line 25 of file blockitem.cpp.
BlockItem::~BlockItem | ( | ) |
Deletes the BlockItem instance.
Definition at line 32 of file blockitem.cpp.
Member Function Documentation
|
signal |
signals the end of the destruction animation
- Parameters
-
blockItem this block item
Member Data Documentation
|
protected |
Number of frames for the destruction.
Definition at line 41 of file blockitem.h.
|
protected |
Timer used to animate explosion.
Definition at line 38 of file blockitem.h.
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.