Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::debugui Namespace Reference

Classes

struct  QuestionPlan
 

Enumerations

enum class  Question { RetryCancel , OkCancel , YesNo }
 

Functions

QuestionPlan questionPlan (Question question, bool defaultPositive)
 
std::expected< void, std::string > displayMessage (std::string_view title, std::string_view message, SDL_Window *window)
 
std::expected< bool, std::string > retryMessage (std::string_view title, std::string_view message, SDL_Window *window)
 
std::expected< bool, std::string > okCancelMessage (std::string_view title, std::string_view message, SDL_Window *window)
 
std::expected< bool, std::string > yesNoMessage (std::string_view title, std::string_view message, bool defaultYes, SDL_Window *window)
 
void errorExit (std::string_view message, SDL_Window *window)
 

Variables

constexpr int ErrorExitStatus = 20
 

Enumeration Type Documentation

◆ Question

Enumerator
RetryCancel 
OkCancel 
YesNo 

Definition at line 13 of file DebugDialogs.hpp.

Function Documentation

◆ displayMessage()

std::expected< void, std::string > monopoly::debugui::displayMessage ( std::string_view  title,
std::string_view  message,
SDL_Window *  window 
)

Definition at line 83 of file DebugDialogs.cpp.

◆ errorExit()

void monopoly::debugui::errorExit ( std::string_view  message,
SDL_Window *  window 
)

Definition at line 135 of file DebugDialogs.cpp.

◆ okCancelMessage()

std::expected< bool, std::string > monopoly::debugui::okCancelMessage ( std::string_view  title,
std::string_view  message,
SDL_Window *  window 
)

Definition at line 112 of file DebugDialogs.cpp.

◆ questionPlan()

QuestionPlan monopoly::debugui::questionPlan ( Question  question,
bool  defaultPositive 
)

Definition at line 59 of file DebugDialogs.cpp.

◆ retryMessage()

std::expected< bool, std::string > monopoly::debugui::retryMessage ( std::string_view  title,
std::string_view  message,
SDL_Window *  window 
)

Definition at line 101 of file DebugDialogs.cpp.

◆ yesNoMessage()

std::expected< bool, std::string > monopoly::debugui::yesNoMessage ( std::string_view  title,
std::string_view  message,
bool  defaultYes,
SDL_Window *  window 
)

Definition at line 123 of file DebugDialogs.cpp.

Variable Documentation

◆ ErrorExitStatus

constexpr int monopoly::debugui::ErrorExitStatus = 20
inlineconstexpr

Definition at line 11 of file DebugDialogs.hpp.