2014-06-16 03:34:39 +02:00
|
|
|
#ifndef H_DIRECTION_H
|
|
|
|
#define H_DIRECTION_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct locale;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
D_NORTHWEST,
|
|
|
|
D_NORTHEAST,
|
|
|
|
D_EAST,
|
|
|
|
D_SOUTHEAST,
|
|
|
|
D_SOUTHWEST,
|
|
|
|
D_WEST,
|
|
|
|
MAXDIRECTIONS,
|
|
|
|
D_PAUSE,
|
|
|
|
D_SPECIAL,
|
|
|
|
NODIRECTION = -1
|
|
|
|
} direction_t;
|
|
|
|
|
2014-06-16 07:17:08 +02:00
|
|
|
direction_t get_direction(const char *s, const struct locale *);
|
2014-06-16 03:34:39 +02:00
|
|
|
void init_directions(const struct locale *lang);
|
|
|
|
void init_direction(const struct locale *lang, direction_t dir, const char *str);
|
|
|
|
|
2014-06-16 07:17:08 +02:00
|
|
|
direction_t finddirection(const char *str);
|
|
|
|
|
|
|
|
extern const char * directions[];
|
|
|
|
|
2014-06-16 03:34:39 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
#endif
|
|
|
|
#endif
|