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

kblackbox

Public Member Functions | Static Public Attributes | List of all members
KBBTutorial Class Reference

#include <kbbtutorial.h>

Inheritance diagram for KBBTutorial:
Inheritance graph
[legend]

Public Member Functions

 KBBTutorial (QWidget *parent)
 
void hideEvent (QHideEvent *)
 
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
 

Detailed Description

Tutorial widget.

Definition at line 51 of file kbbtutorial.h.

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:09 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