Debian Codegraph @

src/widget/city_overlay_health.c

raw symbols SCIP
1 #cxx . . $ `<file>/src/widget/city_overlay_health.c`/include "city_overlay_health.h"cxx . . $ `<file>/src/widget/city_overlay_health.h`/
2
3 #include "game/state.h"cxx . . $ `<file>/src/game/state.h`/
4
5 static int show_building_barbercxx . . $ show_building_barber(27039b5b2e2de46c).(const buildingcxx . . $ building# *b)
6 {
7 return b->typecxx . . $ $anonymous_type_dde82302b87c4d82_0#type. == BUILDING_BARBERcxx . . $ BUILDING_BARBER.;
8 }
9
10 static int show_building_bathhousecxx . . $ show_building_bathhouse(27039b5b2e2de46c).(const buildingcxx . . $ building# *b)
11 {
12 return b->typecxx . . $ $anonymous_type_dde82302b87c4d82_0#type. == BUILDING_BATHHOUSEcxx . . $ BUILDING_BATHHOUSE.;
13 }
14
15 static int show_building_cliniccxx . . $ show_building_clinic(27039b5b2e2de46c).(const buildingcxx . . $ building# *b)
16 {
17 return b->typecxx . . $ $anonymous_type_dde82302b87c4d82_0#type. == BUILDING_DOCTORcxx . . $ BUILDING_DOCTOR.;
18 }
19
20 static int show_building_hospitalcxx . . $ show_building_hospital(27039b5b2e2de46c).(const buildingcxx . . $ building# *b)
21 {
22 return b->typecxx . . $ $anonymous_type_dde82302b87c4d82_0#type. == BUILDING_HOSPITALcxx . . $ BUILDING_HOSPITAL.;
23 }
24
25 static int show_figure_barbercxx . . $ show_figure_barber(376694241926d098).(const figurecxx . . $ figure# *f)
26 {
27 return f->typecxx . . $ $anonymous_type_89db89a99534a867_0#type. == FIGURE_BARBERcxx . . $ FIGURE_BARBER.;
28 }
29
30 static int show_figure_bathhousecxx . . $ show_figure_bathhouse(376694241926d098).(const figurecxx . . $ figure# *f)
31 {
32 return f->typecxx . . $ $anonymous_type_89db89a99534a867_0#type. == FIGURE_BATHHOUSE_WORKERcxx . . $ FIGURE_BATHHOUSE_WORKER.;
33 }
34
35 static int show_figure_cliniccxx . . $ show_figure_clinic(376694241926d098).(const figurecxx . . $ figure# *f)
36 {
37 return f->typecxx . . $ $anonymous_type_89db89a99534a867_0#type. == FIGURE_DOCTORcxx . . $ FIGURE_DOCTOR.;
38 }
39
40 static int show_figure_hospitalcxx . . $ show_figure_hospital(376694241926d098).(const figurecxx . . $ figure# *f)
41 {
42 return f->typecxx . . $ $anonymous_type_89db89a99534a867_0#type. == FIGURE_SURGEONcxx . . $ FIGURE_SURGEON.;
43 }
44
45 static int get_column_height_barbercxx . . $ get_column_height_barber(27039b5b2e2de46c).(const buildingcxx . . $ building# *b)
46 {
47 return b->house_sizecxx . . $ $anonymous_type_dde82302b87c4d82_0#house_size. && b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..barbercxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#barber. ? b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..barbercxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#barber. / 10 : NO_COLUMNcxx . . $ `src/widget/city_overlay.h:8:9`!;
48 }
49
50 static int get_column_height_bathhousecxx . . $ get_column_height_bathhouse(27039b5b2e2de46c).(const buildingcxx . . $ building# *b)
51 {
52 return b->house_sizecxx . . $ $anonymous_type_dde82302b87c4d82_0#house_size. && b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..bathhousecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#bathhouse. ? b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..bathhousecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#bathhouse. / 10 : NO_COLUMNcxx . . $ `src/widget/city_overlay.h:8:9`!;
53 }
54
55 static int get_column_height_cliniccxx . . $ get_column_height_clinic(27039b5b2e2de46c).(const buildingcxx . . $ building# *b)
56 {
57 return b->house_sizecxx . . $ $anonymous_type_dde82302b87c4d82_0#house_size. && b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..cliniccxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#clinic. ? b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..cliniccxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#clinic. / 10 : NO_COLUMNcxx . . $ `src/widget/city_overlay.h:8:9`!;
58 }
59
60 static int get_column_height_hospitalcxx . . $ get_column_height_hospital(27039b5b2e2de46c).(const buildingcxx . . $ building# *b)
61 {
62 return b->house_sizecxx . . $ $anonymous_type_dde82302b87c4d82_0#house_size. && b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..hospitalcxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#hospital. ? b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..hospitalcxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#hospital. / 10 : NO_COLUMNcxx . . $ `src/widget/city_overlay.h:8:9`!;
63 }
64
65 static int get_tooltip_barbercxx . . $ get_tooltip_barber(511f57e6d3db8f38).(tooltip_contextcxx . . $ tooltip_context# *c, const buildingcxx . . $ building# *b)
66 {
67 if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..barbercxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#barber. <= 0) {
68 return 31;
69 } else if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..barbercxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#barber. >= 80) {
70 return 32;
71 } else if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..barbercxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#barber. < 20) {
72 return 33;
73 } else {
74 return 34;
75 }
76 }
77
78 static int get_tooltip_bathhousecxx . . $ get_tooltip_bathhouse(511f57e6d3db8f38).(tooltip_contextcxx . . $ tooltip_context# *c, const buildingcxx . . $ building# *b)
79 {
80 if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..bathhousecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#bathhouse. <= 0) {
81 return 8;
82 } else if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..bathhousecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#bathhouse. >= 80) {
83 return 9;
84 } else if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..bathhousecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#bathhouse. >= 20) {
85 return 10;
86 } else {
87 return 11;
88 }
89 }
90
91 static int get_tooltip_cliniccxx . . $ get_tooltip_clinic(511f57e6d3db8f38).(tooltip_contextcxx . . $ tooltip_context# *c, const buildingcxx . . $ building# *b)
92 {
93 if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..cliniccxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#clinic. <= 0) {
94 return 35;
95 } else if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..cliniccxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#clinic. >= 80) {
96 return 36;
97 } else if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..cliniccxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#clinic. >= 20) {
98 return 37;
99 } else {
100 return 38;
101 }
102 }
103
104 static int get_tooltip_hospitalcxx . . $ get_tooltip_hospital(511f57e6d3db8f38).(tooltip_contextcxx . . $ tooltip_context# *c, const buildingcxx . . $ building# *b)
105 {
106 if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..hospitalcxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#hospital. <= 0) {
107 return 39;
108 } else if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..hospitalcxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#hospital. >= 80) {
109 return 40;
110 } else if (b->datacxx . . $ $anonymous_type_dde82302b87c4d82_0#data..housecxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#house..hospitalcxx . . $ $anonymous_type_dde82302b87c4d82_0#$anonymous_type_2#$anonymous_type_8#hospital. >= 20) {
111 return 41;
112 } else {
113 return 42;
114 }
115 }
116
117 const city_overlaycxx . . $ city_overlay# *city_overlay_for_barbercxx . . $ city_overlay_for_barber(3a37bbd038fda768).(void)
118 {
119 static city_overlaycxx . . $ city_overlay# overlay = {
120 OVERLAY_BARBERcxx . . $ OVERLAY_BARBER.,
121 COLUMN_TYPE_ACCESScxx . . $ COLUMN_TYPE_ACCESS.,
122 show_building_barbercxx . . $ show_building_barber(27039b5b2e2de46c).,
123 show_figure_barbercxx . . $ show_figure_barber(376694241926d098).,
124 get_column_height_barbercxx . . $ get_column_height_barber(27039b5b2e2de46c).,
125 0,
126 get_tooltip_barbercxx . . $ get_tooltip_barber(511f57e6d3db8f38).,
127 0,
128 0
129 };
130 return &overlay;
131 }
132
133 const city_overlaycxx . . $ city_overlay# *city_overlay_for_bathhousecxx . . $ city_overlay_for_bathhouse(3a37bbd038fda768).(void)
134 {
135 static city_overlaycxx . . $ city_overlay# overlay = {
136 OVERLAY_BATHHOUSEcxx . . $ OVERLAY_BATHHOUSE.,
137 COLUMN_TYPE_ACCESScxx . . $ COLUMN_TYPE_ACCESS.,
138 show_building_bathhousecxx . . $ show_building_bathhouse(27039b5b2e2de46c).,
139 show_figure_bathhousecxx . . $ show_figure_bathhouse(376694241926d098).,
140 get_column_height_bathhousecxx . . $ get_column_height_bathhouse(27039b5b2e2de46c).,
141 0,
142 get_tooltip_bathhousecxx . . $ get_tooltip_bathhouse(511f57e6d3db8f38).,
143 0,
144 0
145 };
146 return &overlay;
147 }
148
149 const city_overlaycxx . . $ city_overlay# *city_overlay_for_cliniccxx . . $ city_overlay_for_clinic(3a37bbd038fda768).(void)
150 {
151 static city_overlaycxx . . $ city_overlay# overlay = {
152 OVERLAY_CLINICcxx . . $ OVERLAY_CLINIC.,
153 COLUMN_TYPE_ACCESScxx . . $ COLUMN_TYPE_ACCESS.,
154 show_building_cliniccxx . . $ show_building_clinic(27039b5b2e2de46c).,
155 show_figure_cliniccxx . . $ show_figure_clinic(376694241926d098).,
156 get_column_height_cliniccxx . . $ get_column_height_clinic(27039b5b2e2de46c).,
157 0,
158 get_tooltip_cliniccxx . . $ get_tooltip_clinic(511f57e6d3db8f38).,
159 0,
160 0
161 };
162 return &overlay;
163 }
164
165 const city_overlaycxx . . $ city_overlay# *city_overlay_for_hospitalcxx . . $ city_overlay_for_hospital(3a37bbd038fda768).(void)
166 {
167 static city_overlaycxx . . $ city_overlay# overlay = {
168 OVERLAY_HOSPITALcxx . . $ OVERLAY_HOSPITAL.,
169 COLUMN_TYPE_ACCESScxx . . $ COLUMN_TYPE_ACCESS.,
170 show_building_hospitalcxx . . $ show_building_hospital(27039b5b2e2de46c).,
171 show_figure_hospitalcxx . . $ show_figure_hospital(376694241926d098).,
172 get_column_height_hospitalcxx . . $ get_column_height_hospital(27039b5b2e2de46c).,
173 0,
174 get_tooltip_hospitalcxx . . $ get_tooltip_hospital(511f57e6d3db8f38).,
175 0,
176 0
177 };
178 return &overlay;
179 }