2010-08-08 10:06:34 +02:00
|
|
|
#ifndef TELEPORT_H
|
|
|
|
#define TELEPORT_H
|
2017-10-10 18:45:44 +02:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2010-08-08 10:06:34 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-09-21 22:16:46 +02:00
|
|
|
#define TP_RADIUS 2 /* Radius von Schemen */
|
2019-09-23 20:44:19 +02:00
|
|
|
#define MAX_SCHEMES ((TP_RADIUS * 2 + 1) * (TP_RADIUS * 2 + 1) - 4)
|
2019-09-21 22:16:46 +02:00
|
|
|
|
2017-10-10 18:45:44 +02:00
|
|
|
struct region;
|
|
|
|
struct region_list;
|
|
|
|
struct plane;
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
struct region *r_standard_to_astral(const struct region *r);
|
|
|
|
struct region *r_astral_to_standard(const struct region *);
|
2017-10-10 18:45:44 +02:00
|
|
|
bool inhabitable(const struct region *r);
|
|
|
|
bool is_astral(const struct region *r);
|
|
|
|
struct plane *get_astralplane(void);
|
2019-09-21 22:16:46 +02:00
|
|
|
int get_astralregions(const struct region * r, bool(*valid) (const struct region *), struct region *result[]);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
void create_teleport_plane(void);
|
|
|
|
void spawn_braineaters(float chance);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2017-10-10 18:45:44 +02:00
|
|
|
int real2tp(int rk);
|
|
|
|
|
2010-08-08 10:06:34 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|