Freeciv-3.2
Loading...
Searching...
No Matches
gui_tilespec.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14/***********************************************************************
15 gui_tilespec.h - description
16 -------------------
17 begin : Dec. 2 2002
18 copyright : (C) 2002 by RafaƂ Bursig
19 email : Rafal Bursig <bursig@poczta.fm>
20***********************************************************************/
21
22#ifndef FC__GUI_TILESPEC_H
23#define FC__GUI_TILESPEC_H
24
25/* SDL3 */
26#include <SDL3/SDL.h>
27
28/* client */
29#include "tilespec.h"
30
31/* gui-sdl3 */
32#include "graphics.h"
33#include "sprite.h"
34
35struct theme_icons {
36
37 /* Frame */
42
43 /* Button */
45
46 /* Edit */
48
49 /* Checkbox */
52
53 /* Scrollbar */
60
61 /* Game */
73
86
87 /* help icons */
89
90 /* city icons */
98
99 /* diplomacy */
102
103 /* orders icons */
142};
143
144struct city_icon {
145 int style;
146
161
169 /*SDL_Surface *pDark_Face;*/
170
174
175 /* Small Citizens */
184
186};
187
188extern struct theme_icons *current_theme;
189extern struct city_icon *icons;
190
191void tilespec_setup_theme(void);
192void tilespec_free_theme(void);
193
194void tilespec_setup_city_gfx(void);
195void tilespec_free_city_gfx(void);
196
198void tilespec_free_city_icons(void);
199
202
203void draw_intro_gfx(void);
204
209
210/**********************************************************************/
219
220/**********************************************************************/
223static inline SDL_Surface *get_nation_flag_surface(const struct nation_type *pnation)
224{
225 return GET_SURF(get_nation_flag_sprite(tileset, pnation));
226}
227
228/**********************************************************************/
231static inline SDL_Surface *get_government_surface(const struct government *gov)
232{
234}
235
236/**********************************************************************/
243
244/**********************************************************************/
247static inline SDL_Surface *get_building_surface(const struct impr_type *pimprove)
248{
249 return GET_SURF(get_building_sprite(tileset, pimprove));
250}
251
252/**********************************************************************/
256 enum direction8 facing)
257{
259 facing));
260}
261
262/**********************************************************************/
269
270#endif /* FC__GUI_TILESPEC_H */
citizen_category
Definition city.h:267
char * incite_cost
Definition comments.c:75
int Tech_type_id
Definition fc_types.h:377
#define SP_MAX
Definition fc_types.h:409
enum output_type_id Output_type_id
Definition fc_types.h:378
GType type
Definition repodlgs.c:1313
#define adj_surf(surf)
Definition graphics.h:200
static SDL_Surface * get_government_surface(const struct government *gov)
struct city_icon * icons
static SDL_Surface * get_building_surface(const struct impr_type *pimprove)
void setup_auxiliary_tech_icons(void)
static SDL_Surface * get_citizen_surface(enum citizen_category type, int citizen_index)
static SDL_Surface * get_tax_surface(Output_type_id otype)
struct theme_icons * current_theme
Definition fc_client.cpp:65
void tilespec_setup_city_gfx(void)
static SDL_Surface * get_nation_flag_surface(const struct nation_type *pnation)
static SDL_Surface * get_unittype_surface(const struct unit_type *punittype, enum direction8 facing)
SDL_Color * get_tech_color(Tech_type_id tech_id)
void draw_intro_gfx(void)
static SDL_Surface * get_sample_city_surface(int city_style)
void tilespec_free_city_icons(void)
void tilespec_setup_theme(void)
void tilespec_free_city_gfx(void)
void tilespec_setup_city_icons(void)
void tilespec_free_theme(void)
SDL_Surface * get_tech_icon(Tech_type_id tech)
void reload_citizens_icons(int style)
SDL_Surface * get_city_gfx(void)
void free_auxiliary_tech_icons(void)
#define GET_SURF(m_sprite)
Definition sprite.h:29
SDL_Surface * pollution
SDL_Surface * shield
SDL_Surface * coint
SDL_Surface * big_trade_corr
SDL_Surface * trade
SDL_Surface * big_shield_corr
SDL_Surface * big_trade
SDL_Surface * face
SDL_Surface * food
SDL_Surface * female_angry
SDL_Surface * big_shield
SDL_Surface * specialists[SP_MAX]
SDL_Surface * female_happy
SDL_Surface * big_luxury
SDL_Surface * female_content
SDL_Surface * police
SDL_Surface * pBIG_Face
SDL_Surface * big_colb
SDL_Surface * big_coin_upkeep
SDL_Surface * pLuxury
SDL_Surface * female_unhappy
SDL_Surface * male_unhappy
SDL_Surface * male_content
SDL_Surface * big_food
SDL_Surface * big_coin_corr
SDL_Surface * male_happy
SDL_Surface * big_coin
SDL_Surface * big_food_corr
SDL_Surface * male_angry
SDL_Surface * big_food_surplus
SDL_Surface * pColb
SDL_Surface * worklist
SDL_Surface * big_shield_surplus
SDL_Surface * o_load_icon
SDL_Surface * block
SDL_Surface * OAirLift_Icon
SDL_Surface * back_icon
SDL_Surface * new_turn_icon
SDL_Surface * o_autoconnect_icon
SDL_Surface * o_autoexp_icon
SDL_Surface * o_nuke_icon
SDL_Surface * o_sentry_icon
SDL_Surface * l_arrow_icon
SDL_Surface * o_clean_icon
SDL_Surface * o_done_icon
SDL_Surface * edit
SDL_Surface * prod_icon
SDL_Surface * lock_icon
SDL_Surface * small_cancel_icon
SDL_Surface * o_railroad_icon
SDL_Surface * o_goto_city_icon
SDL_Surface * cbox_unsell_icon
SDL_Surface * fr_top
SDL_Surface * units2_icon
SDL_Surface * small_ok_icon
SDL_Surface * delete_icon
SDL_Surface * o_disband_icon
SDL_Surface * o_road_icon
SDL_Surface * order_icon
SDL_Surface * log_icon
SDL_Surface * button
SDL_Surface * down_icon
SDL_Surface * o_return_icon
SDL_Surface * o_homecity_icon
SDL_Surface * fr_right
SDL_Surface * cbox_sell_icon
SDL_Surface * FORWARD_Icon
SDL_Surface * info_icon
SDL_Surface * o_cultivate_icon
SDL_Surface * ok_icon
SDL_Surface * army_icon
SDL_Surface * OPlantForest_Icon
SDL_Surface * up_icon
SDL_Surface * r_arrow_icon
SDL_Surface * fr_bottom
SDL_Surface * o_transform_icon
SDL_Surface * OCutDownForest_Icon
SDL_Surface * o_patrol_icon
SDL_Surface * o_mine_icon
SDL_Surface * horiz
SDL_Surface * o_fortify_icon
SDL_Surface * cancel_pact_icon
SDL_Surface * fr_left
SDL_Surface * o_fortress_icon
SDL_Surface * map_icon
SDL_Surface * support_icon
SDL_Surface * buy_prod_icon
SDL_Surface * o_trade_icon
SDL_Surface * left_icon
SDL_Surface * o_wonder_icon
SDL_Surface * qprod_icon
SDL_Surface * units_icon
SDL_Surface * OAddCity_Icon
SDL_Surface * options_icon
SDL_Surface * vertic
SDL_Surface * o_autosett_icon
SDL_Surface * cancel_icon
SDL_Surface * unlock_icon
SDL_Surface * o_spy_icon
SDL_Surface * right_icon
SDL_Surface * o_airbase_icon
SDL_Surface * save_icon
SDL_Surface * o_paradrop_icon
SDL_Surface * happy_icon
SDL_Surface * players_icon
SDL_Surface * find_city_icon
SDL_Surface * o_irrigation_icon
SDL_Surface * o_pillage_icon
SDL_Surface * cma_icon
SDL_Surface * load_icon
SDL_Surface * tech_tree_icon
SDL_Surface * o_plant_icon
SDL_Surface * o_goto_icon
SDL_Surface * o_wait_icon
SDL_Surface * o_unload_icon
SDL_Surface * ok_pact_icon
SDL_Surface * o_build_city_icon
SDL_Surface * o_wakeup_icon
int city_style(struct city *pcity)
Definition style.c:241
struct sprite * get_government_sprite(const struct tileset *t, const struct government *gov)
Definition tilespec.c:6793
struct sprite * get_building_sprite(const struct tileset *t, const struct impr_type *pimprove)
Definition tilespec.c:6783
struct sprite * get_sample_city_sprite(const struct tileset *t, int style_idx)
Definition tilespec.c:6851
struct sprite * get_tax_sprite(const struct tileset *t, Output_type_id otype)
Definition tilespec.c:6879
struct sprite * get_citizen_sprite(const struct tileset *t, enum citizen_category type, int citizen_index, const struct city *pcity)
Definition tilespec.c:6722
struct sprite * get_unittype_sprite(const struct tileset *t, const struct unit_type *punittype, enum unit_activity activity, enum direction8 facing)
Definition tilespec.c:6805
struct sprite * get_nation_flag_sprite(const struct tileset *t, const struct nation_type *pnation)
Definition tilespec.c:6756