-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathparser.h
More file actions
37 lines (29 loc) · 761 Bytes
/
parser.h
File metadata and controls
37 lines (29 loc) · 761 Bytes
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
#ifndef ATL_PARSER_H
#define ATL_PARSER_H
#include "keywords.h"
struct region;
struct faction;
struct unit;
enum {
U_NOTFOUND,
U_NONE,
U_UNIT,
U_PEASANTS,
};
int getunit(struct region * r, const struct faction *f, struct unit **uptr);
struct unit *getunitg(struct region *r, const struct faction *f);
extern const char *keywords[];
extern const char *skillnames[];
extern const char *itemnames[][2];
extern const char *spellnames[];
keyword_t findkeyword(const char *s);
keyword_t igetkeyword(const char *s);
keyword_t getkeyword(void);
int getitem(void);
int getskill(void);
int getspell(void);
char *igetstr(const char *s);
int findspell(const char *s);
int finddirection(const char *s);
extern const char* direction_name(int);
#endif