nsnake
Classic snake game for the terminal
Dialog.hpp
1 #ifndef DIALOG_H_DEFINED
2 #define DIALOG_H_DEFINED
3 
4 #include <string>
5 
9 namespace Dialog
10 {
20  void show(std::string message, bool pressAnyKey=false);
21 
28  bool askBool(std::string question, std::string title="", bool default_value=false);
29 };
30 
31 #endif //DIALOG_H_DEFINED
32 
bool askBool(std::string question, std::string title="", bool default_value=false)
Spawns a Dialog box asking for a yes-or-no #question.
Definition: Dialog.cpp:58
Quick-and-dirty functions to show GUI-like dialogs on the screen.
Definition: Dialog.hpp:9
void show(std::string message, bool pressAnyKey=false)
Shows a message on the screen.
Definition: Dialog.cpp:12