Angband
option.h
Go to the documentation of this file.
1 
18 #ifndef INCLUDED_OPTIONS_H
19 #define INCLUDED_OPTIONS_H
20 
21 #include "z-file.h"
22 
26 enum
27 {
33 
35 };
36 
40 enum
41 {
42  #define OP(a, b, c, d) OPT_##a,
43  #include "list-options.h"
44  #undef OP
45  OPT_MAX
46 };
47 
48 
49 #define OPT(opt_name) op_ptr->opt[OPT_##opt_name]
50 
54 #define OPT_PAGE_MAX OP_SCORE
55 #define OPT_PAGE_PER 20
56 #define OPT_PAGE_BIRTH 1
57 
62 
66 const char *option_name(int opt);
67 const char *option_desc(int opt);
68 int option_type(int opt);
69 bool option_set(const char *opt, int val);
70 void init_options(void);
71 
72 
73 #endif /* !INCLUDED_OPTIONS_H */