Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5299 igevorse 1
/******************************************************************
2
*   21 days: a game for programmers
3
*   Copyright (C) 2014 Maxim Grishin
4
*
5
*   This program is free software; you can redistribute it and/or
6
*   modify it under the terms of the GNU General Public License
7
*   as published by the Free Software Foundation; either version 2
8
*   of the License, or (at your option) any later version.
9
*
10
*   This program is distributed in the hope that it will be useful,
11
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
*   GNU General Public License for more details.
14
*
15
*   You should have received a copy of the GNU General Public License
16
*   along with this program; if not, write to the Free Software
17
*   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
*   MA  02110-1301, USA.
19
*******************************************************************/
20
 
21
#ifndef H_INTERFACE
22
#define H_INTERFACE
23
#include 
24
 
25
char getAnswer(char a1, char a2);
26
char getAnswer(char a1, char a2, char a3);
27
char getAnswer(char a1, char a2, char a3, char a4);
28
char getKey();
29
void clearBuffer();
30
 
31
#ifdef _KOS32
32
using std::string;
33
string itos(int n);
34
string txt(string s, int d);
35
string txt(string s, string s2);
36
string txt(string s, string s2, string s3);
37
 
38
string txt(string s, char c);
39
string txt(string s, char ch, string s2);
40
string txt(string s, char ch, string s2, char ch2);
41
 
42
string txt(string s, int d1, int d2);
43
string txt(string s, int d1, int d2, int d3);
44
string txt(string s, int d1, int d2, int d3, int d4);
45
 
46
#else
47
std::string txt(const char* s, ...);
48
#endif
49
 
50
void wait(char a = ENTER_KEY, char b = ENTER_KEY);
51
void drawWindow(std::string content, const char* title = 0, std::string topline = "", std::string bottomline = "", bool usePagesForLongText = false);
52
void drawModalWindow(const char* content , const char* title = 0, const char* buttons = 0);
53
#endif