Cute Chess 0.1
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

◆ PlayerType

Player's type.

Enumerator
Human 

Human player.

CPU 

Computer controlled player.

Constructor & Destructor Documentation

◆ NewGameDialog()

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

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

◆ ~NewGameDialog()

NewGameDialog::~NewGameDialog ( )
virtual

Destroys the dialog.

Member Function Documentation

◆ createGame()

ChessGame * NewGameDialog::createGame ( ) const

Creates and returns the ChessGame object.

◆ createPlayerBuilder()

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: