Cute Chess 0.1
TournamentFactory Class Reference

A factory for creating Tournament objects. More...

#include <tournamentfactory.h>

Static Public Member Functions

static Tournamentcreate (const QString &type, GameManager *manager, QObject *parent=nullptr)

Detailed Description

A factory for creating Tournament objects.

Member Function Documentation

◆ create()

Tournament * TournamentFactory::create ( const QString & type,
GameManager * manager,
QObject * parent = nullptr )
static

Creates and returns a new tournament of type type that uses manager to manage its games.

Returns 0 if type is not supported.


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