~ubuntu-branches/debian/squeeze/freeciv/squeeze

« back to all changes in this revision

Viewing changes to client/citydlg_common.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach
  • Date: 2008-07-08 18:34:23 UTC
  • mfrom: (5.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080708183423-c80u1h25xmj6h9s0
Tags: 2.1.5-2
Export datarootdir=/usr/share in debian/rules, so make calls can
have a correct value for LOCALEDIR (closes: #489455). Thanks Loïc Minier
for the help to solve this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#include <stddef.h>             /* size_t */
18
18
 
19
19
#include "shared.h"             /* bool type */
20
 
 
21
 
#include "city.h"               /* Specialist_type_id */
22
20
#include "fc_types.h"
23
21
 
 
22
#include "city.h"
 
23
 
24
24
struct canvas;
25
25
 
26
 
struct citizen_type {
27
 
  enum {
28
 
    CITIZEN_SPECIALIST,
29
 
    CITIZEN_CONTENT,
30
 
    CITIZEN_HAPPY,
31
 
    CITIZEN_UNHAPPY,
32
 
    CITIZEN_ANGRY,
33
 
    CITIZEN_LAST
34
 
  } type;
35
 
  Specialist_type_id spec_type;
36
 
};
37
 
 
38
26
int get_citydlg_canvas_width(void);
39
27
int get_citydlg_canvas_height(void);
40
28
void generate_citydlg_dimensions(void);
49
37
void get_city_dialog_production(struct city *pcity,
50
38
                                char *buffer, size_t buffer_len);
51
39
void get_city_dialog_production_full(char *buffer, size_t buffer_len,
52
 
                                     int id, bool is_unit,
 
40
                                     struct city_production target,
53
41
                                     struct city *pcity);
54
 
void get_city_dialog_production_row(char *buf[], size_t column_size, int id,
55
 
                                    bool is_unit, struct city *pcity);
56
 
 
57
 
void get_city_citizen_types(struct city *pcity, int index,
58
 
                            struct citizen_type *citizens);
 
42
void get_city_dialog_production_row(char *buf[], size_t column_size,
 
43
                                    struct city_production target,
 
44
                                    struct city *pcity);
 
45
 
 
46
void get_city_dialog_output_text(const struct city *pcity,
 
47
                                 Output_type_id otype,
 
48
                                 char *buffer, size_t bufsz);
 
49
void get_city_dialog_pollution_text(const struct city *pcity,
 
50
                                    char *buffer, size_t bufsz);
 
51
 
 
52
int get_city_citizen_types(struct city *pcity, enum citizen_feeling index,
 
53
                           enum citizen_category *citizens);
59
54
void city_rotate_specialist(struct city *pcity, int citizen_index);
60
55
 
61
56
void activate_all_units(struct tile *ptile);
62
57
 
63
 
int city_change_production(struct city *pcity, bool is_unit, int build_id);
 
58
int city_change_production(struct city *pcity, struct city_production target);
64
59
int city_set_worklist(struct city *pcity, struct worklist *pworklist);
65
60
bool city_queue_insert(struct city *pcity, int position,
66
 
                       bool item_is_unit, int item_id);
 
61
                       struct city_production target);
 
62
bool city_queue_clear(struct city *pcity);
 
63
bool city_queue_insert_worklist(struct city *pcity, int position,
 
64
                                struct worklist *worklist);
67
65
void city_get_queue(struct city *pcity, struct worklist *pqueue);
68
 
void city_set_queue(struct city *pcity, struct worklist *pqueue);
 
66
bool city_set_queue(struct city *pcity, struct worklist *pqueue);
69
67
bool city_can_buy(const struct city *pcity);
70
 
int city_sell_improvement(struct city *pcity, Impr_Type_id sell_id);
 
68
int city_sell_improvement(struct city *pcity, Impr_type_id sell_id);
71
69
int city_buy_production(struct city *pcity);
72
70
int city_change_specialist(struct city *pcity, Specialist_type_id from,
73
71
                           Specialist_type_id to);