• 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
Block Class Reference

#include <block.h>

Inheritance diagram for Block:
Inheritance graph
[legend]

Signals

void startDestructionAnimation ()
 
- Signals inherited from Element
void moved (qreal p_x, qreal p_y)
 

Public Member Functions

 Block (qreal p_x, qreal p_y, Arena *p_arena, const QString &p_imageId)
 
 ~Block ()
 
Bonus * getBonus ()
 
void setBonus (Bonus *bonus)
 
void startDestruction ()
 
- Public Member Functions inherited from Element
 Element (qreal p_x, qreal p_y, Arena *p_arena)
 
 ~Element ()
 
virtual void doActionOnCollision (Player *p_player)
 
QString getImageId () const
 
Granatier::Element::Type getType () const
 
qreal getX () const
 
qreal getY () const
 
void initCoordinate ()
 
void setArena (Arena *p_arena)
 
void setImageId (const QString &p_imageId)
 
void setInitialCoordinates (qreal p_x, qreal p_y)
 
void setX (qreal p_x)
 
void setY (qreal p_y)
 

Additional Inherited Members

- Protected Attributes inherited from Element
Arena * m_arena
 
QString m_imageId
 
Granatier::Element::Type m_type
 
qreal m_x
 
qreal m_xInit
 
qreal m_y
 
qreal m_yInit
 

Detailed Description

This class represents a block with the possibility of a bonus inside.

Definition at line 30 of file block.h.

Constructor & Destructor Documentation

Block::Block ( qreal  p_x,
qreal  p_y,
Arena *  p_arena,
const QString &  p_imageId 
)

Creates a new Block instance.

Definition at line 23 of file block.cpp.

Block::~Block ( )

Deletes the Block instance.

Definition at line 30 of file block.cpp.

Member Function Documentation

Bonus * Block::getBonus ( )

Returns the Bonus which is contained by the Block.

Returns
the hidden Bonus

Definition at line 39 of file block.cpp.

void Block::setBonus ( Bonus *  bonus)

Sets the Bonus which is contained by the Block.

Parameters
bonusthe hidden Bonus

Definition at line 34 of file block.cpp.

void Block::startDestruction ( )

destroys the block

Definition at line 44 of file block.cpp.

void Block::startDestructionAnimation ( )
signal

The documentation for this class was generated from the following files:
  • block.h
  • block.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