-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathflags.h
56 lines (50 loc) · 1.12 KB
/
flags.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
#include "graphics.h"
#include "bool.h"
enum TextLayout {LAYOUT_CENTER, LAYOUT_RIGHT, LAYOUT_LEFT};
class Flag{
public:
const char *shortname;
const char *name;
const char *credit;
const char *aliases;
GraphicsCommand far *commands;
RGBCOLOR text_color;
int text_size;
TextLayout text_layout;
Flag(
const char far *shortname,
const char far *names,
const char far *credit,
const char far *aliases,
GraphicsCommand far *commands,
RGBCOLOR text_color,
int text_size
);
Flag(
const char far *shortname,
const char far *names,
const char far *credit,
const char far *aliases,
GraphicsCommand far *commands,
RGBCOLOR text_color,
int text_size,
TextLayout text_layout
);
Flag(
const char far *shortname,
const char far *names,
const char far *credit,
const char far *aliases,
GraphicsCommand far *commands
);
const char *listAliases();
bool match(const char *name);
private:
void flag_setup(const char far *shortname,
const char far *names,
const char far *credit,
const char far *aliases,
GraphicsCommand far *commands
);
};
extern class Flag far *PRIDE_FLAGS[];