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/* SDL2 */
26#ifdef SDL2_PLAIN_INCLUDE
27#include <SDL.h>
28#else /* SDL2_PLAIN_INCLUDE */
29#include <SDL2/SDL.h>
30#endif /* SDL2_PLAIN_INCLUDE */
31
32/* client */
33#include "tilespec.h"
34
35/* gui-sdl2 */
36#include "graphics.h"
37#include "sprite.h"
38
40
41 /* Frame */
46
47 /* Button */
49
50 /* Edit */
52
53 /* Checkbox */
56
57 /* Scrollbar */
64
65 /* Game */
77
90
91 /* help icons */
93
94 /* city icons */
102
103 /* diplomacy */
106
107 /* orders icons */
146};
147
191
192extern struct theme_icons *current_theme;
193extern struct city_icon *icons;
194
195void tilespec_setup_theme(void);
196void tilespec_free_theme(void);
197
198void tilespec_setup_city_gfx(void);
199void tilespec_free_city_gfx(void);
200
202void tilespec_free_city_icons(void);
203
206
207void draw_intro_gfx(void);
208
213
214/**********************************************************************/
223
224/**********************************************************************/
227static inline SDL_Surface *get_nation_flag_surface(const struct nation_type *pnation)
228{
229 return GET_SURF(get_nation_flag_sprite(tileset, pnation));
230}
231
232/**********************************************************************/
235static inline SDL_Surface *get_government_surface(const struct government *gov)
236{
238}
239
240/**********************************************************************/
247
248/**********************************************************************/
251static inline SDL_Surface *get_building_surface(const struct impr_type *pimprove)
252{
253 return GET_SURF(get_building_sprite(tileset, pimprove));
254}
255
256/**********************************************************************/
260 enum direction8 facing)
261{
263 facing));
264}
265
266/**********************************************************************/
273
274#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