server/src/gmtool.h

48 lines
1.2 KiB
C
Raw Normal View History

/*
2010-08-08 10:06:34 +02:00
* +-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
* | | Enno Rehling <enno@eressea.de>
* | Eressea PBEM host | Katja Zedel <katze@felidae.kn-bremen.de>
* | (c) 1998 - 2006 |
* | | This program may not be used, modified or distributed
* +-------------------+ without prior permission by the authors of Eressea.
*
*/
#ifndef H_GMTOOL
#define H_GMTOOL
#include <stddef.h>
#include <stdbool.h>
2010-08-08 10:06:34 +02:00
#ifdef __cplusplus
extern "C" {
#endif
struct lua_State;
struct selection;
struct state;
struct region;
struct terrain_type;
struct newfaction;
2010-08-08 10:06:34 +02:00
2011-03-07 08:02:35 +01:00
int curses_readline(struct lua_State *L, char *buffer, size_t size,
const char *prompt);
2010-08-08 10:06:34 +02:00
void highlight_region(struct region *r, int on);
void select_coordinate(struct selection *selected, int x, int y, bool on);
2010-08-08 10:06:34 +02:00
void run_mapper(void);
2011-02-26 10:21:10 +01:00
extern int force_color;
2016-08-07 19:19:35 +02:00
extern int gm_codepage;
2010-08-08 10:06:34 +02:00
2011-03-07 08:02:35 +01:00
struct state *state_open(void);
void state_close(struct state *);
2010-08-08 10:06:34 +02:00
2011-03-07 08:02:35 +01:00
void make_block(int x, int y, int radius, const struct terrain_type *terrain);
void seed_players(struct newfaction **players, bool new_island);
2010-08-08 10:06:34 +02:00
#ifdef __cplusplus
}
#endif
#endif