-
Notifications
You must be signed in to change notification settings - Fork 1
/
keyboard.h
63 lines (56 loc) · 970 Bytes
/
keyboard.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef KEYBOARD_H
#define KEYBOARD_H
#include <string>
using namespace std;
class KEYBOARD {
public:
int sw;
int s;
int se;
int w;
int e;
int nw;
int n;
int ne;
int quit;
int wait;
int get;
int escape;
int backspace;
int readmore;
int readmore2;
int inventory;
int fire;
int help;
int messagebuffer;
int inc_fire;
int dec_fire;
int options;
int reload;
int nearest;
int char_info;
int look;
int open;
int close;
int _throw;
int save;
int down;
int up;
int rest;
int attack;
int exchange;
int activate_armor;
int activate_weapon;
int explore;
int travel;
int show_visible;
KEYBOARD();
string get_name(int posx, int posy, int size);
int get_value(int posx, int posy, int size);
int getkey();
int wait_for_key();
int ungetkey(int character);
int get_direction(int &dx, int &dy);
bool yes_no();
};
#endif