#include <score.h>
Collaboration diagram for Score:

Public Member Functions | |
| Score (QObject *parent=0) | |
| Construct a score object. | |
| void | setLevel (int level, int no) |
| Set and update the level of the AI. | |
| void | setPlayerName (QString name, int no) |
| Set and update the player name. | |
| void | setTurn (int no) |
| Set and update whose turn it is (which player goes next). | |
| void | setWins (int amount, int no) |
| Set and update the amount of wins of a player. | |
| void | setLosses (int amount, int no) |
| Set and update the amount of losses of a player. | |
| void | setRemis (int amount, int no) |
| Set and update the amount of draws of a player. | |
| void | setBreaks (int amount, int no) |
| Set and update the amount of aborted games of a player. | |
| void | setPlayedBy (int type, int no) |
| Set and update the input device of a player. | |
| void | setDisplay (ScoreSprite *s) |
| Connect the score to a display sprite. | |
Protected Member Functions | |
| void | update () |
| Push all data into the display sprite. | |
Definition at line 34 of file score.h.
|
|
Construct a score object.
|
|
||||||||||||
|
Set and update the amount of aborted games of a player.
Definition at line 83 of file score.h. References update(). Here is the call graph for this function: ![]() |
|
|
Connect the score to a display sprite. This sprite will be used for the update of the data.
Definition at line 38 of file score.cpp. References update(). Referenced by KWin4View::initGame(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Set and update the level of the AI.
Definition at line 48 of file score.h. References update(). Referenced by KWin4Doc::loadSettings(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Set and update the amount of losses of a player.
Definition at line 71 of file score.h. References update(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Set and update the input device of a player.
Definition at line 89 of file score.h. References update(). Referenced by KWin4Doc::setPlayedBy(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Set and update the player name.
Definition at line 54 of file score.h. References update(). Referenced by KWin4Doc::playerPropertyChanged(), and KWin4Player::slotPlayerPropertyChanged(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Set and update the amount of draws of a player.
Definition at line 77 of file score.h. References update(). Here is the call graph for this function: ![]() |
|
|
Set and update whose turn it is (which player goes next).
Definition at line 59 of file score.h. References update(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Set and update the amount of wins of a player.
Definition at line 65 of file score.h. References update(). Here is the call graph for this function: ![]() |
|
|
Push all data into the display sprite.
Definition at line 46 of file score.cpp. References ScoreSprite::setBreak(), ScoreSprite::setDraw(), ScoreSprite::setInput(), ScoreSprite::setLevel(), ScoreSprite::setLoss(), ScoreSprite::setPlayerName(), ScoreSprite::setTurn(), and ScoreSprite::setWon(). Referenced by setBreaks(), setDisplay(), setLevel(), setLosses(), setPlayedBy(), setPlayerName(), setRemis(), setTurn(), and setWins(). Here is the call graph for this function: ![]() |
1.4.6