Cute Chess  0.1
Public Types | Public Member Functions | List of all members
NewGameDialog Class Reference

The NewGameDialog class provides a dialog for creating a new game. More...

#include <newgamedlg.h>

Inheritance diagram for NewGameDialog:
QDialog

Public Types

enum  PlayerType { Human, CPU }
 
- Public Types inherited from QDialog
enum  DialogCode
 

Public Member Functions

ChessGamecreateGame () const
 
PlayerBuildercreatePlayerBuilder (Chess::Side side) const
 
 NewGameDialog (EngineManager *engineManager, QWidget *parent=nullptr)
 
virtual ~NewGameDialog ()
 

Detailed Description

The NewGameDialog class provides a dialog for creating a new game.

Member Enumeration Documentation

Player's type.

Enumerator
Human 

Human player.

CPU 

Computer controlled player.

Constructor & Destructor Documentation

NewGameDialog::NewGameDialog ( EngineManager engineManager,
QWidget parent = nullptr 
)

Creates a "New Game" dialog with engineManager as the source of engine configurations.

NewGameDialog::~NewGameDialog ( )
virtual

Destroys the dialog.

Member Function Documentation

ChessGame * NewGameDialog::createGame ( ) const

Creates and returns the ChessGame object.

PlayerBuilder * NewGameDialog::createPlayerBuilder ( Chess::Side  side) const

Creates and returns the PlayerBuilder for side.


The documentation for this class was generated from the following files: