Freeciv-3.1
|
#include <stdarg.h>
#include "astring.h"
#include "bitvector.h"
#include "fc_cmdline.h"
#include "fcintl.h"
#include "log.h"
#include "mem.h"
#include "string_vector.h"
#include "timing.h"
#include "calendar.h"
#include "connection.h"
#include "fc_types.h"
#include "game.h"
#include "map.h"
#include "rgbcolor.h"
#include "terrain.h"
#include "tile.h"
#include "version.h"
#include "player.h"
#include "mapimg.h"
#include "specenum_gen.h"
#include "speclist.h"
Go to the source code of this file.
Data Structures | |
struct | tile_shape |
struct | mapdef |
struct | img |
struct | toolkit |
Macros | |
#define | MagickLibInterface 0 |
#define | MagickLibVersion 0 |
#define | magickwand_size_t unsigned long |
#define | TILE_SIZE 6 |
#define | NUM_PIXEL TILE_SIZE * TILE_SIZE |
#define | ARG_PLRBV "plrbv" |
#define | ARG_PLRID "plrid" |
#define | ARG_PLRNAME "plrname" |
#define | SPECENUM_NAME mapdef_arg |
#define | SPECENUM_VALUE0 MAPDEF_FORMAT |
#define | SPECENUM_VALUE0NAME "format" |
#define | SPECENUM_VALUE1 MAPDEF_MAP |
#define | SPECENUM_VALUE1NAME "map" |
#define | SPECENUM_VALUE2 MAPDEF_PLRBV |
#define | SPECENUM_VALUE2NAME ARG_PLRBV |
#define | SPECENUM_VALUE3 MAPDEF_PLRID |
#define | SPECENUM_VALUE3NAME ARG_PLRID |
#define | SPECENUM_VALUE4 MAPDEF_PLRNAME |
#define | SPECENUM_VALUE4NAME ARG_PLRNAME |
#define | SPECENUM_VALUE5 MAPDEF_SHOW |
#define | SPECENUM_VALUE5NAME "show" |
#define | SPECENUM_VALUE6 MAPDEF_TURNS |
#define | SPECENUM_VALUE6NAME "turns" |
#define | SPECENUM_VALUE7 MAPDEF_ZOOM |
#define | SPECENUM_VALUE7NAME "zoom" |
#define | SPECENUM_COUNT MAPDEF_COUNT |
#define | SPECENUM_NAME imageformat |
#define | SPECENUM_BITWISE |
#define | SPECENUM_VALUE0 IMGFORMAT_GIF |
#define | SPECENUM_VALUE0NAME "gif" |
#define | SPECENUM_VALUE1 IMGFORMAT_PNG |
#define | SPECENUM_VALUE1NAME "png" |
#define | SPECENUM_VALUE2 IMGFORMAT_PPM |
#define | SPECENUM_VALUE2NAME "ppm" |
#define | SPECENUM_VALUE3 IMGFORMAT_JPG |
#define | SPECENUM_VALUE3NAME "jpg" |
#define | SPECENUM_NAME imagetool |
#define | SPECENUM_VALUE0 IMGTOOL_PPM |
#define | SPECENUM_VALUE0NAME "ppm" |
#define | SPECENUM_VALUE1 IMGTOOL_MAGICKWAND |
#define | SPECENUM_VALUE1NAME "magick" |
#define | SPECENUM_NAME show_player |
#define | SPECENUM_VALUE0 SHOW_NONE |
#define | SPECENUM_VALUE0NAME "none" |
#define | SPECENUM_VALUE1 SHOW_EACH |
#define | SPECENUM_VALUE1NAME "each" |
#define | SPECENUM_VALUE2 SHOW_HUMAN |
#define | SPECENUM_VALUE2NAME "human" |
#define | SPECENUM_VALUE3 SHOW_ALL |
#define | SPECENUM_VALUE3NAME "all" |
#define | SPECENUM_VALUE4 SHOW_PLRNAME |
#define | SPECENUM_VALUE4NAME ARG_PLRNAME |
#define | SPECENUM_VALUE5 SHOW_PLRID |
#define | SPECENUM_VALUE5NAME ARG_PLRID |
#define | SPECENUM_VALUE6 SHOW_PLRBV |
#define | SPECENUM_VALUE6NAME ARG_PLRBV |
#define | SPECENUM_NAME mapimg_status |
#define | SPECENUM_VALUE0 MAPIMG_STATUS_UNKNOWN |
#define | SPECENUM_VALUE0NAME _("not checked") |
#define | SPECENUM_VALUE1 MAPIMG_STATUS_OK |
#define | SPECENUM_VALUE1NAME _("OK") |
#define | SPECENUM_VALUE2 MAPIMG_STATUS_ERROR |
#define | SPECENUM_VALUE2NAME _("error") |
#define | MAX_LEN_MAPARG MAX_LEN_MAPDEF |
#define | MAX_NUM_MAPIMG 10 |
#define | SPECLIST_TAG mapdef |
#define | SPECLIST_TYPE struct mapdef |
#define | mapdef_list_iterate(mapdef_list, pmapdef) TYPED_LIST_ITERATE(struct mapdef, mapdef_list, pmapdef) |
#define | mapdef_list_iterate_end LIST_ITERATE_END |
#define | IMG_BORDER_HEIGHT 5 |
#define | IMG_BORDER_WIDTH IMG_BORDER_HEIGHT |
#define | IMG_SPACER_HEIGHT 5 |
#define | IMG_LINE_HEIGHT 5 |
#define | IMG_TEXT_HEIGHT 12 |
#define | GEN_TOOLKIT(_tool, _format_default, _formats, _save_func, _help) {_tool, _format_default, _formats, _save_func, _help}, |
#define | MAPIMG_DEFAULT_IMGFORMAT IMGFORMAT_PPM |
#define | MAPIMG_DEFAULT_IMGTOOL IMGTOOL_PPM |
#define | img_toolkit_iterate(_toolkit) |
#define | img_toolkit_iterate_end |
#define | MAX_LEN_ERRORBUF 1024 |
#define | MAPIMG_LOG(format, ...) mapimg_log(__FILE__, __FUNCTION__, __FC_LINE__, format, ## __VA_ARGS__) |
#define | MAPIMG_ASSERT_RET_VAL(cond, expr) fc_assert_action(cond, MAPIMG_LOG(_("internal error")); return (expr)) |
#define | NUM_MAX_MAPARGS 10 |
#define | NUM_MAX_MAPOPTS 2 |
#define | NUM_MAX_FORMATARGS 2 |
#define | SIZE_X 16 |
#define | SIZE_Y 5 |
Typedefs | |
typedef bv_pixel(* | plot_func) (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
typedef void(* | base_coor_func) (struct img *pimg, int *base_x, int *base_y, int x, int y) |
typedef bool(* | img_save_func) (const struct img *pimg, const char *mapimgfile) |
Enumerations | |
enum | img_special { IMGCOLOR_ERROR , IMGCOLOR_OCEAN , IMGCOLOR_GROUND , IMGCOLOR_BACKGROUND , IMGCOLOR_TEXT } |
Functions | |
static const struct rgbcolor * | imgcolor_special (enum img_special imgcolor) |
static const struct rgbcolor * | imgcolor_player (int plr_id) |
static const struct rgbcolor * | imgcolor_terrain (const struct terrain *pterrain) |
BV_DEFINE (bv_pixel, NUM_PIXEL) | |
static bv_pixel | pixel_tile_rect (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_city_rect (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_unit_rect (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_fogofwar_rect (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_border_rect (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static void | base_coor_rect (struct img *pimg, int *base_x, int *base_y, int x, int y) |
static bv_pixel | pixel_tile_hexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_city_hexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_unit_hexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_fogofwar_hexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_border_hexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static void | base_coor_hexa (struct img *pimg, int *base_x, int *base_y, int x, int y) |
static bv_pixel | pixel_tile_isohexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_city_isohexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_unit_isohexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_fogofwar_isohexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static bv_pixel | pixel_border_isohexa (const struct tile *ptile, const struct player *pplayer, bool knowledge) |
static void | base_coor_isohexa (struct img *pimg, int *base_x, int *base_y, int x, int y) |
BV_DEFINE (bv_mapdef_arg, MAPDEF_COUNT) | |
static bool | mapimg_test (int id) |
static bool | mapimg_define_arg (struct mapdef *pmapdef, enum mapdef_arg arg, const char *val, bool check) |
static bool | mapimg_def2str (struct mapdef *pmapdef, char *str, size_t str_len) |
static bool | mapimg_checkplayers (struct mapdef *pmapdef, bool recheck) |
static char * | mapimg_generate_name (struct mapdef *pmapdef) |
static struct mapdef * | mapdef_new (bool colortest) |
static void | mapdef_destroy (struct mapdef *pmapdef) |
static struct img * | img_new (struct mapdef *mapdef, int topo, int xsize, int ysize) |
static void | img_destroy (struct img *pimg) |
static void | img_set_pixel (struct img *pimg, const int mindex, const struct rgbcolor *pcolor) |
static int | img_index (const int x, const int y, const struct img *pimg) |
static const char * | img_playerstr (const struct player *pplayer) |
static void | img_plot (struct img *pimg, int x, int y, const struct rgbcolor *pcolor, const bv_pixel pixel) |
static void | img_plot_tile (struct img *pimg, const struct tile *ptile, const struct rgbcolor *pcolor, const bv_pixel pixel) |
static bool | img_save (const struct img *pimg, const char *mapimgfile, const char *path) |
static bool | img_save_ppm (const struct img *pimg, const char *mapimgfile) |
static bool | img_filename (const char *mapimgfile, enum imageformat format, char *filename, size_t filename_len) |
static void | img_createmap (struct img *pimg) |
static const struct toolkit * | img_toolkit_get (enum imagetool tool) |
static void | mapimg_log (const char *file, const char *function, int line, const char *format,...) fc__attribute((__format__(__printf__ |
static int | bvplayers_count (const struct mapdef *pmapdef) |
static const char * | bvplayers_str (const bv_player plrbv) |
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) |
void | mapimg_reset (void) |
void | mapimg_free (void) |
int | mapimg_count (void) |
static const char * | showname_help (enum show_player showplr) |
char * | mapimg_help (const char *cmdname) |
const char * | mapimg_error (void) |
bool | mapimg_define (const char *maparg, bool check) |
struct mapdef * | mapimg_isvalid (int id) |
const struct strvec * | mapimg_get_format_list (void) |
const char * | mapimg_get_format_default (void) |
bool | mapimg_delete (int id) |
bool | mapimg_show (int id, char *str, size_t str_len, bool detail) |
bool | mapimg_id2str (int id, char *str, size_t str_len) |
bool | mapimg_create (struct mapdef *pmapdef, bool force, const char *savename, const char *path) |
bool | mapimg_colortest (const char *savename, const char *path) |
bool | mapimg_initialised (void) |
Variables | ||
static struct tile_shape | tile_rect | |
static struct tile_shape | tile_hexa | |
static struct tile_shape | tile_isohexa | |
static struct toolkit | img_toolkits [] | |
static const int | img_toolkits_count = ARRAY_SIZE(img_toolkits) | |
static char | error_buffer [MAX_LEN_ERRORBUF] = "\0" | |
struct { | ||
bool init | ||
struct mapdef_list * mapdef | ||
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 | ||
} | mapimg = { .init = FALSE } | |
#define GEN_TOOLKIT | ( | _tool, | |
_format_default, | |||
_formats, | |||
_save_func, | |||
_help | |||
) | {_tool, _format_default, _formats, _save_func, _help}, |
#define IMG_BORDER_WIDTH IMG_BORDER_HEIGHT |
#define img_toolkit_iterate | ( | _toolkit | ) |
#define mapdef_list_iterate | ( | mapdef_list, | |
pmapdef | |||
) | TYPED_LIST_ITERATE(struct mapdef, mapdef_list, pmapdef) |
#define mapdef_list_iterate_end LIST_ITERATE_END |
#define MAPIMG_ASSERT_RET_VAL | ( | cond, | |
expr | |||
) | fc_assert_action(cond, MAPIMG_LOG(_("internal error")); return (expr)) |
#define MAPIMG_LOG | ( | format, | |
... | |||
) | mapimg_log(__FILE__, __FUNCTION__, __FC_LINE__, format, ## __VA_ARGS__) |
#define MAX_LEN_MAPARG MAX_LEN_MAPDEF |
#define NUM_MAX_FORMATARGS 2 |
Helper function for mapimg_define().
#define SIZE_X 16 |
#define SIZE_Y 5 |
#define SPECENUM_NAME mapdef_arg |
#define SPECENUM_NAME imageformat |
#define SPECENUM_NAME imagetool |
#define SPECENUM_NAME show_player |
#define SPECENUM_NAME mapimg_status |
#define SPECENUM_VALUE4NAME ARG_PLRNAME |
#define SPECENUM_VALUE4NAME ARG_PLRNAME |
typedef void(* base_coor_func) (struct img *pimg, int *base_x, int *base_y, int x, int y) |
enum img_special |
|
static |
|
static |
|
static |
BV_DEFINE | ( | bv_mapdef_arg | , |
MAPDEF_COUNT | |||
) |
BV_DEFINE | ( | bv_pixel | , |
NUM_PIXEL | |||
) |
|
static |
Return the number of players defined in a map image definition.
Definition at line 3257 of file mapimg.c.
Referenced by img_createmap().
|
static |
Convert the player bitvector to a string.
Definition at line 3234 of file mapimg.c.
Referenced by mapimg_def2str(), and mapimg_show().
|
static |
Create the map considering the options (terrain, player(s), cities, units, borders, known, fogofwar, ...).
Definition at line 2412 of file mapimg.c.
Referenced by mapimg_create().
|
static |
Destroy a image.
Definition at line 1965 of file mapimg.c.
Referenced by mapimg_colortest(), and mapimg_create().
|
static |
Generate the final filename.
Definition at line 2381 of file mapimg.c.
Referenced by img_save_ppm().
|
inlinestatic |
Get the index for an (x,y) image coordinate.
Definition at line 1992 of file mapimg.c.
Referenced by get_city_sprite(), img_plot(), and img_save_ppm().
Create a new image.
Definition at line 1870 of file mapimg.c.
Referenced by mapimg_colortest(), and mapimg_create().
|
static |
Return a definition string for the player.
Definition at line 2395 of file mapimg.c.
Referenced by img_save_ppm().
|
static |
Plot one tile at (x,y). Only the pixel of the tile set within 'pixel' are plotted.
Definition at line 2005 of file mapimg.c.
Referenced by img_plot_tile(), and mapimg_colortest().
|
static |
Plot one tile. Only the pixel of the tile set within 'pixel' are plotted.
Definition at line 2028 of file mapimg.c.
Referenced by img_createmap().
Save an image as ppm file.
Definition at line 2041 of file mapimg.c.
Referenced by mapimg_colortest(), and mapimg_create().
Save an image using magickwand as toolkit. This allows different file formats.
Image structure:
[ 0] border [+IMG_BORDER_HEIGHT] title [+ IMG_TEXT_HEIGHT] space (only if count(displayed players) > 0) [+IMG_SPACER_HEIGHT] player line (only if count(displayed players) > 0) [+ IMG_LINE_HEIGHT] space [+IMG_SPACER_HEIGHT] map [+ map_height] border [+IMG_BORDER_HEIGHT] Save an image as ppm file (toolkit: ppm).
|
static |
Return the definition of the requested toolkit (or NULL).
Definition at line 1856 of file mapimg.c.
Referenced by img_save(), mapimg_colortest(), mapimg_define_arg(), mapimg_get_format_list(), and mapimg_help().
|
static |
Return rgbcolor for player.
FIXME: nearly identical with get_player_color() in colors_common.c.
Definition at line 3319 of file mapimg.c.
Referenced by img_createmap(), and img_playerstr().
|
static |
Return rgbcolor for img_special
Definition at line 3296 of file mapimg.c.
Referenced by img_createmap(), img_save_ppm(), imgcolor_player(), imgcolor_terrain(), and mapimg_colortest().
Return rgbcolor for terrain.
FIXME: nearly identical with get_terrain_color() in colors_common.c.
Definition at line 3336 of file mapimg.c.
Referenced by img_createmap(), and mapimg_colortest().
|
static |
Destroy a map image definition.
Definition at line 1838 of file mapimg.c.
Referenced by mapimg_colortest(), mapimg_define(), mapimg_help(), and mapimg_reset().
Create a new map image definition with default values.
Definition at line 1804 of file mapimg.c.
Referenced by mapimg_colortest(), mapimg_define(), and mapimg_help().
Check the player selection. This needs to be done before each image creation call (see mapimg_create()) to test that the selection is still valid as players can be added or removed during the game.
Definition at line 1636 of file mapimg.c.
Referenced by mapimg_create(), and mapimg_isvalid().
bool mapimg_colortest | ( | const char * | savename, |
const char * | path | ||
) |
Create images which shows all map colors (playercolor, terrain colors). One image is created for each supported toolkit and image format. The filename will be [basename as used for savegames]-colortest-[toolkit].[format].
Definition at line 1435 of file mapimg.c.
Referenced by mapimg_command().
int mapimg_count | ( | void | ) |
Return the number of map image definitions.
Definition at line 572 of file mapimg.c.
Referenced by mapimg_client_define(), mapimg_command(), mapimg_define(), mapimg_test(), sg_load_mapimg(), sg_load_mapimg(), sg_save_mapimg(), show_mapimg(), and srv_running().
bool mapimg_create | ( | struct mapdef * | pmapdef, |
bool | force, | ||
const char * | savename, | ||
const char * | path | ||
) |
Create the requested map image. The filename is created as [basename as used for savegames]-[mapstr].[mapext] where [mapstr] contains the map definition and [mapext] the selected image extension. If 'force' is FALSE, the image is only created if game.info.turn is a multiple of the map setting turns.
Definition at line 1331 of file mapimg.c.
Referenced by mapimg_client_createmap(), mapimg_command(), and srv_running().
Return a mapdef string for the map image definition given by 'pmapdef'.
Definition at line 1576 of file mapimg.c.
Referenced by mapimg_id2str(), and mapimg_show().
Definition at line 768 of file mapimg.c.
Referenced by mapimg_client_define(), mapimg_command(), sg_load_mapimg(), and sg_load_mapimg().
|
static |
Definition at line 891 of file mapimg.c.
Referenced by mapimg_define().
bool mapimg_delete | ( | int | id | ) |
Delete a map image definition.
Definition at line 1203 of file mapimg.c.
Referenced by mapimg_client_define(), mapimg_command(), sg_load_mapimg(), and sg_load_mapimg().
const char * mapimg_error | ( | void | ) |
Returns the last error.
Definition at line 758 of file mapimg.c.
Referenced by mapimg_client_save(), mapimg_command(), and srv_running().
void mapimg_free | ( | void | ) |
Free all memory allocated by the map image subsystem.
Definition at line 557 of file mapimg.c.
Referenced by client_game_free(), and server_quit().
|
static |
Generate an identifier for a map image.
M[map options]Z[zoom factor]P[players]
[map options] map options [zoom factor] zoom factor [players] player ID or vector of size MAX_NUM_PLAYER_SLOTS [0/1]
For the player bitvector all MAX_NUM_PLAYER_SLOTS values are used due to the possibility of additional players during the game (civil war, barbarians).
Definition at line 1731 of file mapimg.c.
Referenced by mapimg_create(), and mapimg_show().
const char * mapimg_get_format_default | ( | void | ) |
const struct strvec * mapimg_get_format_list | ( | void | ) |
char * mapimg_help | ( | const char * | cmdname | ) |
bool mapimg_id2str | ( | int | id, |
char * | str, | ||
size_t | str_len | ||
) |
Return the map image definition 'id' as a mapdef string. This function is a wrapper for mapimg_def2str().
Definition at line 1310 of file mapimg.c.
Referenced by mapimg_command(), and sg_save_mapimg().
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 | ||
) |
Initialisation of the map image subsystem. The arguments are used to determine the map knowledge, the terrain type as well as the tile, city and unit owner.
Definition at line 505 of file mapimg.c.
Referenced by client_game_init(), and srv_prepare().
bool mapimg_initialised | ( | void | ) |
Check if the map image subsustem is initialised.
Definition at line 1552 of file mapimg.c.
Referenced by mapimg_count(), mapimg_define(), mapimg_free(), mapimg_init(), mapimg_reset(), and mapimg_test().
struct mapdef * mapimg_isvalid | ( | int | id | ) |
Check if a map image definition is valid. This function is a wrapper for mapimg_checkplayers().
Definition at line 1120 of file mapimg.c.
Referenced by mapimg_client_createmap(), mapimg_client_define(), mapimg_command(), and srv_running().
|
static |
void mapimg_reset | ( | void | ) |
Reset the map image subsystem.
Definition at line 540 of file mapimg.c.
Referenced by client_game_reset(), mapimg_free(), and srv_main().
Show a map image definition.
Definition at line 1222 of file mapimg.c.
Referenced by mapimg_command(), and show_mapimg().
|
static |
Check if the map image subsystem is initialised and the given ID is valid. In case of an error, the error message is saved via MAPIMG_LOG().
Definition at line 1561 of file mapimg.c.
Referenced by mapimg_delete(), mapimg_id2str(), mapimg_isvalid(), and mapimg_show().
|
static |
|
static |
Definition at line 466 of file mapimg.c.
Referenced by mapimg_error(), and mapimg_log().
|
static |
|
static |
bool init |
Definition at line 482 of file mapimg.c.
Referenced by audio_select_plugin().
struct { ... } mapimg |
mapimg_plrcolor_count_func mapimg_plrcolor_count |
Definition at line 490 of file mapimg.c.
Referenced by mapimg_init().
mapimg_plrcolor_get_func mapimg_plrcolor_get |
Definition at line 491 of file mapimg.c.
Referenced by mapimg_init().
mapimg_tile_player_func mapimg_tile_city |
Definition at line 488 of file mapimg.c.
Referenced by mapimg_init().
mapimg_tile_known_func mapimg_tile_known |
Definition at line 485 of file mapimg.c.
Referenced by mapimg_init().
mapimg_tile_player_func mapimg_tile_owner |
Definition at line 487 of file mapimg.c.
Referenced by mapimg_init().
mapimg_tile_terrain_func mapimg_tile_terrain |
Definition at line 486 of file mapimg.c.
Referenced by mapimg_init().
mapimg_tile_player_func mapimg_tile_unit |
Definition at line 489 of file mapimg.c.
Referenced by mapimg_init().
|
static |
Definition at line 145 of file mapimg.c.
Referenced by img_new().
|
static |
Definition at line 187 of file mapimg.c.
Referenced by img_new().
|
static |
Definition at line 107 of file mapimg.c.
Referenced by img_new().