41#define SPECVEC_TAG sprite
42#define SPECVEC_TYPE struct sprite *
44#define sprite_vector_iterate(sprite_vec, psprite) \
45 TYPED_VECTOR_ITERATE(struct sprite *, sprite_vec, psprite)
46#define sprite_vector_iterate_end VECTOR_ITERATE_END
48#define SPECENUM_NAME ts_type
49#define SPECENUM_VALUE0 TS_OVERHEAD
50#define SPECENUM_VALUE0NAME N_("Overhead")
51#define SPECENUM_VALUE1 TS_ISOMETRIC
52#define SPECENUM_VALUE1NAME N_("Isometric")
55#define SPECENUM_NAME fog_style
57#define SPECENUM_VALUE0 FOG_AUTO
58#define SPECENUM_VALUE0NAME "Auto"
60#define SPECENUM_VALUE1 FOG_SPRITE
61#define SPECENUM_VALUE1NAME "Sprite"
63#define SPECENUM_VALUE2 FOG_DARKNESS
64#define SPECENUM_VALUE2NAME "Darkness"
67#define SPECENUM_NAME darkness_style
69#define SPECENUM_VALUE0 DARKNESS_NONE
70#define SPECENUM_VALUE0NAME "None"
73#define SPECENUM_VALUE1 DARKNESS_ISORECT
74#define SPECENUM_VALUE1NAME "IsoRect"
77#define SPECENUM_VALUE2 DARKNESS_CARD_SINGLE
78#define SPECENUM_VALUE2NAME "CardinalSingle"
81#define SPECENUM_VALUE3 DARKNESS_CARD_FULL
82#define SPECENUM_VALUE3NAME "CardinalFull"
84#define SPECENUM_VALUE4 DARKNESS_CORNER
85#define SPECENUM_VALUE4NAME "Corner"
99#define NUM_EDGE_TILES 2
106#define NUM_CORNER_TILES 4
120#define SPECENUM_NAME mapview_layer
121#define SPECENUM_VALUE0 LAYER_BACKGROUND
122#define SPECENUM_VALUE0NAME "Background"
124#define SPECENUM_VALUE1 LAYER_TERRAIN1
125#define SPECENUM_VALUE1NAME "Terrain1"
126#define SPECENUM_VALUE2 LAYER_DARKNESS
127#define SPECENUM_VALUE2NAME "Darkness"
128#define SPECENUM_VALUE3 LAYER_TERRAIN2
129#define SPECENUM_VALUE3NAME "Terrain2"
130#define SPECENUM_VALUE4 LAYER_TERRAIN3
131#define SPECENUM_VALUE4NAME "Terrain3"
132#define SPECENUM_VALUE5 LAYER_WATER
133#define SPECENUM_VALUE5NAME "Water"
134#define SPECENUM_VALUE6 LAYER_ROADS
135#define SPECENUM_VALUE6NAME "Roads"
136#define SPECENUM_VALUE7 LAYER_SPECIAL1
137#define SPECENUM_VALUE7NAME "Special1"
138#define SPECENUM_VALUE8 LAYER_GRID1
139#define SPECENUM_VALUE8NAME "Grid1"
140#define SPECENUM_VALUE9 LAYER_CITY1
141#define SPECENUM_VALUE9NAME "City1"
142#define SPECENUM_VALUE10 LAYER_SPECIAL2
143#define SPECENUM_VALUE10NAME "Special2"
144#define SPECENUM_VALUE11 LAYER_FOG
145#define SPECENUM_VALUE11NAME "Fog"
146#define SPECENUM_VALUE12 LAYER_UNIT
147#define SPECENUM_VALUE12NAME "Unit"
148#define SPECENUM_VALUE13 LAYER_SPECIAL3
149#define SPECENUM_VALUE13NAME "Special3"
150#define SPECENUM_VALUE14 LAYER_CITY2
151#define SPECENUM_VALUE14NAME "City2"
152#define SPECENUM_VALUE15 LAYER_GRID2
153#define SPECENUM_VALUE15NAME "Grid2"
154#define SPECENUM_VALUE16 LAYER_OVERLAYS
155#define SPECENUM_VALUE16NAME "Overlays"
156#define SPECENUM_VALUE17 LAYER_TILELABEL
157#define SPECENUM_VALUE17NAME "TileLabel"
158#define SPECENUM_VALUE18 LAYER_CITYBAR
159#define SPECENUM_VALUE18NAME "CityBar"
160#define SPECENUM_VALUE19 LAYER_FOCUS_UNIT
161#define SPECENUM_VALUE19NAME "FocusUnit"
162#define SPECENUM_VALUE20 LAYER_GOTO
163#define SPECENUM_VALUE20NAME "Goto"
164#define SPECENUM_VALUE21 LAYER_WORKERTASK
165#define SPECENUM_VALUE21NAME "WorkerTask"
166#define SPECENUM_VALUE22 LAYER_EDITOR
167#define SPECENUM_VALUE22NAME "Editor"
168#define SPECENUM_VALUE23 LAYER_INFRAWORK
169#define SPECENUM_VALUE23NAME "InfraWork"
170#define SPECENUM_COUNT LAYER_COUNT
173#define TERRAIN_LAYER_COUNT 3
175#define mapview_layer_iterate(layer) \
177 enum mapview_layer layer; \
180 for (layer_index = 0; layer_index < LAYER_COUNT; layer_index++) { \
181 layer = tileset_get_layer(tileset, layer_index); \
183#define mapview_layer_iterate_end \
195#define NUM_TILES_PROGRESS 8
197#define MAX_NUM_CITIZEN_SPRITES 6
215 const char *format, ...);
241 const struct terrain *pterrain);
266 const struct tile *ptile,
303#define NUM_CURSOR_FRAMES 6
359#define NUM_WALL_TYPES 7
366 const struct city *pcity);
368 const struct city *pcity);
393 int *hot_x,
int *hot_y,
int frame);
416 const char *tag,
const char *alt,
453#define TS_TOPO_SQUARE 0
455#define TS_TOPO_ISOHEX 2
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction bool const char * tset_name
enum output_type_id Output_type_id
struct setting_list * level[OLEVELS_NUM]
struct sprite int int int int struct sprite int int float scale
struct sprite * background
struct sprite_vector occupancy
struct sprite * terrain_special
struct sprite * terrain_resource
struct sprite * territory
struct sprite * copypaste
struct sprite * military_base
struct sprite * properties
struct sprite * get_government_sprite(const struct tileset *t, const struct government *gov)
void tileset_load_tiles(struct tileset *t)
struct sprite * get_nuke_explode_sprite(const struct tileset *t)
void tileset_setup_resource(struct tileset *t, const struct resource_type *presource)
int tileset_hex_width(const struct tileset *t)
struct sprite * get_building_sprite(const struct tileset *t, const struct impr_type *pimprove)
int tileset_unit_width(const struct tileset *t)
struct unit * get_drawable_unit(const struct tileset *t, struct tile *ptile, const struct city *citymode)
struct sprite * get_attention_crosshair_sprite(const struct tileset *t)
int tileset_unit_height(const struct tileset *t)
int tileset_small_sprite_width(const struct tileset *t)
struct sprite * get_nation_shield_sprite(const struct tileset *t, const struct nation_type *nation)
int tileset_svg_flag_height(struct tileset *t)
struct tileset * get_tileset(void)
void tileset_setup_government(struct tileset *t, struct government *gov)
struct sprite * get_city_flag_sprite(const struct tileset *t, const struct city *pcity)
void tileset_setup_specialist_type_default_set(struct tileset *t, Specialist_type_id id)
struct sprite * get_basic_fog_sprite(const struct tileset *t)
int tileset_full_tile_height(const struct tileset *t)
bool tilespec_try_read(const char *tileset_name, bool verbose, int topo_id, bool global_default)
struct tileset * unscaled_tileset
int fill_basic_extra_sprite_array(const struct tileset *t, struct drawn_sprite *sprs, const struct extra_type *pextra)
struct sprite * get_unit_upkeep_sprite(const struct tileset *t, Output_type_id otype, const struct unit *punit, const int *upkeep_cost)
const char * tileset_main_intro_filename(const struct tileset *t)
void tileset_setup_tile_type(struct tileset *t, const struct terrain *pterrain)
void tileset_player_init(struct tileset *t, struct player *pplayer)
const struct strvec * get_tileset_list(const struct option *poption)
int tileset_unit_layout_offset_y(const struct tileset *t)
int tileset_citybar_offset_y(const struct tileset *t)
struct sprite * get_treaty_thumb_sprite(const struct tileset *t, bool on_off)
bool unit_drawn_with_city_outline(const struct unit *punit, bool check_focus)
double get_focus_unit_toggle_timeout(const struct tileset *t)
void tileset_free_tiles(struct tileset *t)
void tileset_setup_impr_type(struct tileset *t, struct impr_type *pimprove)
const struct sprite_vector * get_unit_explode_animation(const struct tileset *t)
struct sprite * load_popup_sprite(const char *tag)
void tileset_background_init(struct tileset *t)
void tileset_setup_tech_type(struct tileset *t, struct advance *padvance)
void tileset_free(struct tileset *tileset)
float tileset_scale(const struct tileset *t)
int tileset_unit_with_small_upkeep_height(const struct tileset *t)
bool tileset_layer_in_category(enum mapview_layer layer, enum layer_category cat)
int tileset_num_city_colors(const struct tileset *t)
int index_ts_topology(int idx)
bool tileset_is_isometric(const struct tileset *t)
bool tileset_use_hard_coded_fog(const struct tileset *t)
void tileset_use_preferred_theme(const struct tileset *t)
struct sprite * get_indicator_sprite(const struct tileset *t, enum indicator_type indicator, int index)
void tileset_setup_city_tiles(struct tileset *t, int style)
const char * tileset_description(struct tileset *t)
void tileset_background_free(struct tileset *t)
int tileset_unit_layout_small_offset_y(const struct tileset *t)
struct sprite * get_event_sprite(const struct tileset *t, enum event_type event)
void toggle_focus_unit_state(struct tileset *t)
void tilespec_reread_frozen_refresh(const char *tname)
int tileset_small_sprite_height(const struct tileset *t)
struct sprite * get_nation_flag_sprite(const struct tileset *t, const struct nation_type *nation)
void focus_unit_in_combat(struct tileset *t)
const char * tileset_summary(struct tileset *t)
struct sprite * get_icon_sprite(const struct tileset *t, enum icon_type icon)
struct sprite * get_sample_city_sprite(const struct tileset *t, int style_idx)
void tileset_setup_extra(struct tileset *t, struct extra_type *pextra)
void tileset_init(struct tileset *t)
const char * tileset_basename(const struct tileset *t)
int fill_basic_terrain_layer_sprite_array(struct tileset *t, struct drawn_sprite *sprs, int layer, struct terrain *pterrain)
int tileset_tile_height(const struct tileset *t)
struct sprite * get_spaceship_sprite(const struct tileset *t, enum spaceship_part part)
int tileset_unit_with_upkeep_height(const struct tileset *t)
struct sprite * get_cursor_sprite(const struct tileset *t, enum cursor_type cursor, int *hot_x, int *hot_y, int frame)
struct color_system * get_color_system(const struct tileset *t)
int tileset_hex_height(const struct tileset *t)
void reset_focus_unit_state(struct tileset *t)
bool tileset_is_fully_loaded(void)
void tileset_setup_unit_type(struct tileset *t, struct unit_type *punittype)
const struct citybar_sprites * get_citybar_sprites(const struct tileset *t)
void unload_popup_sprite(const char *tag)
struct sprite * get_arrow_sprite(const struct tileset *t, enum arrow_type arrow)
struct sprite * get_unit_unhappy_sprite(const struct tileset *t, const struct unit *punit, int happy_cost)
void finish_loading_sprites(struct tileset *t)
struct sprite * tiles_lookup_sprite_tag_alt(struct tileset *t, enum log_level level, const char *tag, const char *alt, const char *alt2, const char *what, const char *name, bool scale)
void tilespec_reread_callback(struct option *poption)
const char * tileset_name_get(struct tileset *t)
int fill_sprite_array(struct tileset *t, struct drawn_sprite *sprs, enum mapview_layer layer, const struct tile *ptile, const struct tile_edge *pedge, const struct tile_corner *pcorner, const struct unit *punit, const struct city *pcity, const struct city *citymode, const struct unit_type *putype)
int tileset_full_tile_width(const struct tileset *t)
struct sprite * get_tax_sprite(const struct tileset *t, Output_type_id otype)
struct sprite * get_citizen_sprite(const struct tileset *t, enum citizen_category type, int citizen_index, const struct city *pcity)
const char * tileset_version(struct tileset *t)
struct sprite * get_unittype_sprite(const struct tileset *t, const struct unit_type *punittype, enum unit_activity activity, enum direction8 facing)
char * tileset_what_ruleset(struct tileset *t)
bool tilespec_reread(const char *tileset_name, bool game_fully_initialized, float scale)
int tileset_tile_width(const struct tileset *t)
int tileset_tilelabel_offset_y(const struct tileset *t)
struct sprite * get_tech_sprite(const struct tileset *t, Tech_type_id tech)
void tileset_error(enum log_level level, const char *tset_name, const char *format,...)
const struct editor_sprites * get_editor_sprites(const struct tileset *t)
int tileset_topo_index(struct tileset *t)
void tileset_setup_nation_flag(struct tileset *t, struct nation_type *nation)
void tileset_ruleset_reset(struct tileset *t)
enum mapview_layer tileset_get_layer(const struct tileset *t, int n)