kblackbox
kbbballsonboard.h
Go to the documentation of this file.
177 void getOutgoingPosition( int position[DIM_MAX], int incomingDirection[DIM_MAX], QList<int> &points );
int absolutePositionToBoxPosition(int position[DIM_MAX])
Convert (absolute) position to box position.
Definition: kbbballsonboard.cpp:72
int oppositeBorderPosition(int borderPosition)
Compute the opposite border position of the given position.
Definition: kbbballsonboard.cpp:145
KBBBallsOnBoard(KBBGameDoc *parent, const int columns, const int rows)
Constructor.
Definition: kbbballsonboard.cpp:44
int absolutePositionToBorderPosition(int position[DIM_MAX])
Convert (absolute) position to border position.
Definition: kbbballsonboard.cpp:56
void borderPositionToAbsolutePosition(int borderPosition, int position[DIM_MAX])
Convert border position to (abosulte) position.
Definition: kbbballsonboard.cpp:85
void ray(const int borderPosition, QList< int > &points)
Compute the trajectory of a ray with the balls of the set.
Definition: kbbballsonboard.cpp:180
void changes()
void newBoard(const int columns, const int rows)
Define a new board and remove all balls.
Definition: kbbballsonboard.cpp:124
bool contains(int boxPosition)
Check if there is a ball at the given position in the black box.
Definition: kbbballsonboard.cpp:112
int oppositeBorderPositionWithPoints(const int borderPosition, QList< int > &points)
Definition: kbbballsonboard.cpp:151
int numberOfBallsNotIn(KBBBallsOnBoard *otherBoard)
Compares 2 boards and return the number of differences.
Definition: kbbballsonboard.cpp:133
QObject * parent() const
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.