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

granatier

Signals | Public Member Functions | Protected Attributes | List of all members
BlockItem Class Reference

#include <blockitem.h>

Inheritance diagram for BlockItem:
Inheritance graph
[legend]

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_modelthe Block model
rendererthe 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

void BlockItem::blockItemDestroyed ( BlockItem *  blockItem)
signal

signals the end of the destruction animation

Parameters
blockItemthis block item

Member Data Documentation

int BlockItem::m_destructionCounter
protected

Number of frames for the destruction.

Definition at line 41 of file blockitem.h.

QTimer* BlockItem::m_destructionTimer
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:
  • blockitem.h
  • blockitem.cpp
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

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