nsnake
Classic snake game for the terminal
src
Interface
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
Dialog
Quick-and-dirty functions to show GUI-like dialogs on the screen.
Definition:
Dialog.hpp:10
Dialog::show
void show(std::string message, bool pressAnyKey=false)
Shows a message on the screen.
Definition:
Dialog.cpp:12
Dialog::askBool
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
Generated on Tue Jul 28 2020 00:00:00 for nsnake by
1.8.18