kblackbox
kbbgamedoc.cpp
Go to the documentation of this file.
183 setScore(-1); // -1 because a signal "timeChanged" will be send at the beginning and the score will be set to 0.
bool isVisible() const
void updateStats()
int oppositeBorderPosition(int borderPosition)
Compute the opposite border position of the given position.
Definition: kbbballsonboard.cpp:145
int numberOfBallsPlaced()
Number of balls the user placed on the board.
Definition: kbbgamedoc.cpp:112
static const int HIT_POSITION
When a laser ray enter the black box, it exits on a defined border position, except if the laser ray ...
Definition: kbbgamedoc.h:65
void start()
Start the tutorial Start or restart the tutorial at the 1st step.
Definition: kbbtutorial.cpp:251
void newBoard(const int columns, const int rows)
Define a new board and remove all balls.
Definition: kbbballsonboard.cpp:124
void newGame(int balls, int columns, int rows)
Create new board game and initialize game.
Definition: kbbgamedoc.cpp:97
bool contains(int boxPosition)
Check if there is a ball at the given position in the black box.
Definition: kbbballsonboard.cpp:112
bool mayShootRay(const int incomingPosition) const
Definition: kbbgamedoc.cpp:88
int numberOfBallsNotIn(KBBBallsOnBoard *otherBoard)
Compares 2 boards and return the number of differences.
Definition: kbbballsonboard.cpp:133
bool mayShootRay(const int incomingPosition)
May the player shoot the ray?
Definition: kbbtutorial.cpp:131
void isRunning(bool)
int numberOfBallsToPlace()
Number of balls the user has to place on the board.
Definition: kbbgamedoc.cpp:118
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Set of balls (or various objects) with positions on the board.
Definition: kbbballsonboard.h:62
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
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.