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

kblackbox

Public Member Functions | List of all members
KBBItemWithPosition Class Referenceabstract

#include <kbbitemwithposition.h>

Inheritance diagram for KBBItemWithPosition:
Inheritance graph
[legend]

Public Member Functions

virtual ~KBBItemWithPosition ()
 
virtual void cleanDelete ()
 
virtual void highlight (bool)
 
virtual void highlightBoth (bool)
 
virtual int position ()=0
 
virtual void setPause (bool state)
 

Detailed Description

Item with position.

Items with position can be managed by the class KBBGraphicsItemSet.

Definition at line 37 of file kbbitemwithposition.h.

Constructor & Destructor Documentation

KBBItemWithPosition::~KBBItemWithPosition ( )
virtual

Definition at line 35 of file kbbitemwithposition.cpp.

Member Function Documentation

void KBBItemWithPosition::cleanDelete ( )
virtual

Destructor for dependent QGraphicsItem Some QGraphicsItem s needs to delete other dependent QGraphicsItemo s before being deleted.

In this case, this methode should be reimplemented. If the object is not a QGraphicsItem, you probably don't need to reimplement it and can just reimplement the normal destructor in a child class.

It's different from the normal destructor that only destroys this QGraphicsItem. By exiting KBlackBox, the QGraphicsScene is been destroyed and call in an arbitrary order the destructors of all QGraphicsItem.s. So the dependent items may be destroy before this one: That's why we cannot always destroy them in the normal destructor of this class.

Reimplemented in KBBGraphicsItemRayResult.

Definition at line 45 of file kbbitemwithposition.cpp.

void KBBItemWithPosition::highlight ( bool  )
virtual

Reimplemented in KBBGraphicsItemRayResult.

Definition at line 51 of file kbbitemwithposition.cpp.

void KBBItemWithPosition::highlightBoth ( bool  )
virtual

Reimplemented in KBBGraphicsItemRayResult.

Definition at line 56 of file kbbitemwithposition.cpp.

virtual int KBBItemWithPosition::position ( )
pure virtual

Implemented in KBBGraphicsItemRayResult, KBBGraphicsItemLaser, and KBBGraphicsItemOnBox.

void KBBItemWithPosition::setPause ( bool  state)
virtual

Should the element changes if the game is paused? Do nothing.

Reimplement this methode to do something if the game is paused.

Reimplemented in KBBGraphicsItemRayResult.

Definition at line 61 of file kbbitemwithposition.cpp.


The documentation for this class was generated from the following files:
  • kbbitemwithposition.h
  • kbbitemwithposition.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kblackbox

Skip menu "kblackbox"
  • Main Page
  • 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