From 0a8672084b1c7d63b2e87a5a6e579f4c2afeabd7 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 1 Nov 2007 12:11:05 +0000 Subject: Allow yesno to use an override keymap applied after getchm(), make Escape cancel out of the explore stop prompt (bobbens). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2716 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/stuff.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/stuff.h') diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h index 4b23042cbb..e9a4248bd1 100644 --- a/crawl-ref/source/stuff.h +++ b/crawl-ref/source/stuff.h @@ -17,6 +17,7 @@ #define STUFF_H #include "externs.h" +#include std::string make_time_string(time_t abs_time, bool terse = false); void set_redraw_status( unsigned long flags ); @@ -67,9 +68,11 @@ void redraw_screen(); void canned_msg(canned_message_type which_message); +typedef std::map explicit_keymap; bool yesno( const char * str, bool safe = true, int safeanswer = 0, bool clear_after = true, bool interrupt_delays = true, - bool noprompt = false ); + bool noprompt = false, + const explicit_keymap *map = NULL ); int yesnoquit( const char* str, bool safe = true, int safeanswer = 0, bool clear_after = true ); -- cgit v1.2.3-54-g00ecf