• 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 | List of all members
BonusItem Class Reference

#include <bonusitem.h>

Inheritance diagram for BonusItem:
Inheritance graph
[legend]

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

void BonusItem::bonusItemDestroyed ( BonusItem *  bonusItem)
signal

signals the end of the destruction animation

Parameters
bonusItemthis bonus item
void BonusItem::initDestruction ( int  nExplosionID)

Inits the destruction.

Parameters
nExplosionIDthe 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
nExplosionIDthe 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:
  • bonusitem.h
  • bonusitem.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