kblackbox
#include <kbbtutorial.h>
![Inheritance graph](classKBBTutorial__inherit__graph.png)
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
|
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
|
static |
Number of balls in the tutorial.
Definition at line 59 of file kbbtutorial.h.
|
static |
Number of columns in the tutorial.
Definition at line 64 of file kbbtutorial.h.
|
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:
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.