65#define MAX_LEN_MAPDEF 256
68#define SPECENUM_NAME mapimg_layer
69#define SPECENUM_VALUE0 MAPIMG_LAYER_AREA
70#define SPECENUM_VALUE0NAME "a"
71#define SPECENUM_VALUE1 MAPIMG_LAYER_BORDERS
72#define SPECENUM_VALUE1NAME "b"
73#define SPECENUM_VALUE2 MAPIMG_LAYER_CITIES
74#define SPECENUM_VALUE2NAME "c"
75#define SPECENUM_VALUE3 MAPIMG_LAYER_FOGOFWAR
76#define SPECENUM_VALUE3NAME "f"
77#define SPECENUM_VALUE4 MAPIMG_LAYER_KNOWLEDGE
78#define SPECENUM_VALUE4NAME "k"
79#define SPECENUM_VALUE5 MAPIMG_LAYER_TERRAIN
80#define SPECENUM_VALUE5NAME "t"
81#define SPECENUM_VALUE6 MAPIMG_LAYER_UNITS
82#define SPECENUM_VALUE6NAME "u"
84#define SPECENUM_COUNT MAPIMG_LAYER_COUNT
85#define SPECENUM_COUNTNAME "-"
92 const struct player *pplayer,
95 *(*mapimg_tile_terrain_func)(
const struct tile *ptile,
96 const struct player *pplayer,
99 *(*mapimg_tile_player_func)(
const struct tile *ptile,
100 const struct player *pplayer,
104typedef struct rgbcolor *(*mapimg_plrcolor_get_func)(
int);
mapimg_tile_player_func mapimg_tile_owner
mapimg_tile_terrain_func mapimg_tile_terrain
mapimg_tile_player_func mapimg_tile_city
mapimg_tile_player_func mapimg_tile_unit
mapimg_tile_known_func mapimg_tile_known
mapimg_plrcolor_get_func mapimg_plrcolor_get
mapimg_plrcolor_count_func mapimg_plrcolor_count
bool mapimg_id2str(int id, char *str, size_t str_len)
const char * mapimg_get_format_default(void)
bool mapimg_initialised(void)
bool mapimg_colortest(const char *savename, const char *path)
struct mapdef * mapimg_isvalid(int id)
struct rgbcolor *(* mapimg_plrcolor_get_func)(int)
void mapimg_init(mapimg_tile_known_func mapimg_tile_known, mapimg_tile_terrain_func mapimg_tile_terrain, mapimg_tile_player_func mapimg_tile_owner, mapimg_tile_player_func mapimg_tile_city, mapimg_tile_player_func mapimg_tile_unit, mapimg_plrcolor_count_func mapimg_plrcolor_count, mapimg_plrcolor_get_func mapimg_plrcolor_get)
const struct strvec * mapimg_get_format_list(void)
bool mapimg_define(const char *maparg, bool check)
bool mapimg_delete(int id)
int(* mapimg_plrcolor_count_func)(void)
enum known_type(* mapimg_tile_known_func)(const struct tile *ptile, const struct player *pplayer, bool knowledge)
struct terrain *(* mapimg_tile_terrain_func)(const struct tile *ptile, const struct player *pplayer, bool knowledge)
struct player *(* mapimg_tile_player_func)(const struct tile *ptile, const struct player *pplayer, bool knowledge)
bool mapimg_create(struct mapdef *pmapdef, bool force, const char *savename, const char *path)
const char * mapimg_error(void)
bool mapimg_show(int id, char *str, size_t str_len, bool detail)
char * mapimg_help(const char *cmdname)
char maparg[MAX_LEN_MAPARG]