2017-01-10 16:31:05 +01:00
|
|
|
#pragma once
|
|
|
|
|
2014-08-27 21:09:39 +02:00
|
|
|
#ifndef H_VORTEX
|
|
|
|
#define H_VORTEX
|
2017-01-10 16:31:05 +01:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2014-08-27 21:09:39 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct region;
|
|
|
|
struct attrib;
|
2014-09-29 21:22:44 +02:00
|
|
|
struct locale;
|
2014-08-27 21:09:39 +02:00
|
|
|
|
|
|
|
typedef struct spec_direction {
|
|
|
|
int x, y;
|
|
|
|
int duration;
|
|
|
|
bool active;
|
|
|
|
char *desc;
|
|
|
|
char *keyword;
|
|
|
|
} spec_direction;
|
|
|
|
|
|
|
|
extern struct attrib_type at_direction;
|
|
|
|
|
|
|
|
struct region *find_special_direction(const struct region *r,
|
2014-08-28 19:50:38 +02:00
|
|
|
const char *token);
|
2014-09-29 21:19:07 +02:00
|
|
|
void register_special_direction(struct locale *lang, const char *name);
|
2017-08-25 08:52:15 +02:00
|
|
|
void free_special_directions(void);
|
|
|
|
|
2014-08-27 21:09:39 +02:00
|
|
|
struct spec_direction *special_direction(const struct region * from,
|
|
|
|
const struct region * to);
|
|
|
|
struct attrib *create_special_direction(struct region *r, struct region *rt,
|
|
|
|
int duration, const char *desc, const char *keyword, bool active);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2014-09-29 21:22:44 +02:00
|
|
|
#endif
|