Cluedo Solver v1.0
Cluedo game solver making deductions.
Loading...
Searching...
No Matches
Cluedo::UI::NewGameModal Class Reference

A modal used to create a new game. More...

#include <NewGameModal.hpp>

Public Member Functions

 NewGameModal (std::function< void(Solver &&)> on_solver_created_callback)
 
void reset ()
 
void show ()
 Shows the modal.
 

Detailed Description

A modal used to create a new game.

This modal will ask the user to type the number of players and the of the players (their names and number of cards).

Constructor & Destructor Documentation

◆ NewGameModal()

Cluedo::UI::NewGameModal::NewGameModal ( std::function< void(Solver &&)> on_solver_created_callback)
inlineexplicit

Construct the modal.

Parameters
on_solver_created_callbackThe function to be called when the Cluedo::Solver for that game is created.

Member Function Documentation

◆ reset()

void Cluedo::UI::NewGameModal::reset ( )

Resets the modal data.

Note
Used when the modal has to be opened, so that the old data is lost.

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