• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kblackbox

KBBTutorial Class Reference

#include <kbbtutorial.h>

Inheritance diagram for KBBTutorial:

Inheritance graph
[legend]

List of all members.


Detailed Description

Tutorial widget.

Definition at line 51 of file kbbtutorial.h.


Public Member Functions

void hideEvent (QHideEvent *)
 KBBTutorial (QWidget *parent)
bool mayShootRay (const int incomingPosition)
bool maySolve ()
void setGameWidget (KBBScalableGraphicWidget *gameWidget, KBBGraphicsItemTutorialMarker *marker)
void setStep (const int step)
void start ()

Static Public Attributes

static int const BALLS = 3
static int const COLUMNS = 6
static int const ROWS = 6

Constructor & Destructor Documentation

KBBTutorial::KBBTutorial ( QWidget *  parent  )  [explicit]

Constructor.

Definition at line 54 of file kbbtutorial.cpp.


Member Function Documentation

void KBBTutorial::hideEvent ( QHideEvent *   ) 

Event: Leaving the tutorial.

Called by exiting the tutorial

Definition at line 119 of file kbbtutorial.cpp.

bool KBBTutorial::mayShootRay ( const int  incomingPosition  ) 

May the player shoot the ray?

The player may only shoot given rays during the tutorial (except during the last step).

Definition at line 131 of file kbbtutorial.cpp.

bool KBBTutorial::maySolve (  ) 

May the player solve the running game?

The player may solve the game only at the end of the tutorial during the last step.

Definition at line 125 of file kbbtutorial.cpp.

void KBBTutorial::setGameWidget ( KBBScalableGraphicWidget *  gameWidget,
KBBGraphicsItemTutorialMarker *  marker 
)

Define the scalable graphic widget.

Definition at line 148 of file kbbtutorial.cpp.

void KBBTutorial::setStep ( const int  step  ) 

Go to the given tutorial step.

Definition at line 155 of file kbbtutorial.cpp.

void KBBTutorial::start (  ) 

Start the tutorial Start or restart the tutorial at the 1st step.

Definition at line 251 of file kbbtutorial.cpp.


Member Data Documentation

int const KBBTutorial::BALLS = 3 [static]

Number of balls in the tutorial.

Definition at line 59 of file kbbtutorial.h.

int const KBBTutorial::COLUMNS = 6 [static]

Number of columns in the tutorial.

Definition at line 64 of file kbbtutorial.h.

int const KBBTutorial::ROWS = 6 [static]

Number of rows in the tutorial.

Definition at line 69 of file kbbtutorial.h.


The documentation for this class was generated from the following files:
  • kbbtutorial.h
  • kbbtutorial.cpp

kblackbox

Skip menu "kblackbox"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal