server/src/teleport.h

33 lines
795 B
C
Raw Normal View History

2010-08-08 10:06:34 +02:00
#ifndef TELEPORT_H
#define TELEPORT_H
#include <stdbool.h>
2010-08-08 10:06:34 +02:00
#ifdef __cplusplus
extern "C" {
#endif
#define TP_RADIUS 2 /* Radius von Schemen */
#define MAX_SCHEMES ((TP_RADIUS * 2 + 1) * (TP_RADIUS * 2 + 1) - 4)
struct region;
struct region_list;
struct plane;
struct region *r_standard_to_astral(const struct region *r);
struct region *r_astral_to_standard(const struct region *);
bool inhabitable(const struct region *r);
bool is_astral(const struct region *r);
struct plane *get_astralplane(void);
int get_astralregions(const struct region * r, bool(*valid) (const struct region *), struct region *result[]);
2010-08-08 10:06:34 +02:00
void create_teleport_plane(void);
void spawn_braineaters(float chance);
2010-08-08 10:06:34 +02:00
int real2tp(int rk);
2010-08-08 10:06:34 +02:00
#ifdef __cplusplus
}
#endif
#endif