/dports/games/freeciv-nox11/freeciv-2.6.6/common/ |
H A D | tile.c | 42 return ptile->index; in tile_index() 52 return ptile->owner; in tile_owner() 62 return ptile->claimer; in tile_claimer() 73 ptile->owner = pplayer; in tile_set_owner() 97 return ptile->worked; in tile_worked() 106 ptile->worked = pcity; in tile_set_worked() 115 return ptile->terrain; in tile_terrain() 175 if (!ptile) { in tile_extras_safe() 179 return &(ptile->extras); in tile_extras_safe() 368 return ptile->resource; in tile_resource() [all …]
|
H A D | tile.h | 42 #define TILE_XY(ptile) ((ptile) ? index_to_map_pos_x(tile_index(ptile)) \ argument 44 ((ptile) ? index_to_map_pos_y(tile_index(ptile)) \ 72 TYPED_LIST_ITERATE(struct tile, tile_list, ptile) 81 TYPED_HASH_KEYS_ITERATE(struct tile *, hash, ptile) 88 struct city *tile_city(const struct tile *ptile); 117 return &(ptile->extras); in tile_extras() 128 bool tile_has_refuel_extra(const struct tile *ptile, 130 bool tile_has_native_base(const struct tile *ptile, 149 #define tile_has_extra(ptile, pextra) BV_ISSET(ptile->extras, extra_index(pextra)) argument 169 const struct tile *ptile, [all …]
|
/dports/games/freeciv/freeciv-2.6.6/common/ |
H A D | tile.c | 42 return ptile->index; in tile_index() 52 return ptile->owner; in tile_owner() 62 return ptile->claimer; in tile_claimer() 73 ptile->owner = pplayer; in tile_set_owner() 97 return ptile->worked; in tile_worked() 106 ptile->worked = pcity; in tile_set_worked() 115 return ptile->terrain; in tile_terrain() 175 if (!ptile) { in tile_extras_safe() 179 return &(ptile->extras); in tile_extras_safe() 368 return ptile->resource; in tile_resource() [all …]
|
H A D | tile.h | 42 #define TILE_XY(ptile) ((ptile) ? index_to_map_pos_x(tile_index(ptile)) \ argument 44 ((ptile) ? index_to_map_pos_y(tile_index(ptile)) \ 72 TYPED_LIST_ITERATE(struct tile, tile_list, ptile) 81 TYPED_HASH_KEYS_ITERATE(struct tile *, hash, ptile) 88 struct city *tile_city(const struct tile *ptile); 117 return &(ptile->extras); in tile_extras() 128 bool tile_has_refuel_extra(const struct tile *ptile, 130 bool tile_has_native_base(const struct tile *ptile, 149 #define tile_has_extra(ptile, pextra) BV_ISSET(ptile->extras, extra_index(pextra)) argument 169 const struct tile *ptile, [all …]
|
/dports/games/freeciv/freeciv-2.6.6/server/ |
H A D | maphand.c | 66 struct tile *ptile); 139 struct tile *ptile; in climate_change() local 144 ptile = rand_map_pos(); in climate_change() 1045 ptile->site = new_site; in change_playertile_site() 1783 terrain_changed(ptile); in fix_tile_on_terrain_change() 1847 if (!is_claimable_ocean(ptile, claimer, tile_owner(ptile))) { in check_terrain_change() 1880 if (ptile == source) { in is_claimable_ocean() 2159 map_claim_border(ptile, ptile->owner, -1); in map_calculate_borders() 2211 map_claim_border_ownership(ptile, NULL, ptile); in map_claim_base() 2220 map_claim_border_ownership(ptile, powner, ptile); in map_claim_base() [all …]
|
H A D | maphand.h | 59 void send_tile_info(struct conn_list *dest, struct tile *ptile, 64 void map_show_tile(struct player *pplayer, struct tile *ptile); 65 void map_hide_tile(struct player *pplayer, struct tile *ptile); 67 struct tile *ptile, int radius_sq); 74 bool map_is_known_and_seen(const struct tile *ptile, 94 void update_tile_knowledge(struct tile *ptile); 111 void map_clear_border(struct tile *ptile); 119 void terrain_changed(struct tile *ptile); 121 void fix_tile_on_terrain_change(struct tile *ptile, 126 void bounce_units_on_terrain_change(struct tile *ptile); [all …]
|
/dports/games/freeciv-nox11/freeciv-2.6.6/server/ |
H A D | maphand.c | 66 struct tile *ptile); 139 struct tile *ptile; in climate_change() local 144 ptile = rand_map_pos(); in climate_change() 1045 ptile->site = new_site; in change_playertile_site() 1783 terrain_changed(ptile); in fix_tile_on_terrain_change() 1847 if (!is_claimable_ocean(ptile, claimer, tile_owner(ptile))) { in check_terrain_change() 1880 if (ptile == source) { in is_claimable_ocean() 2159 map_claim_border(ptile, ptile->owner, -1); in map_calculate_borders() 2211 map_claim_border_ownership(ptile, NULL, ptile); in map_claim_base() 2220 map_claim_border_ownership(ptile, powner, ptile); in map_claim_base() [all …]
|
H A D | maphand.h | 59 void send_tile_info(struct conn_list *dest, struct tile *ptile, 64 void map_show_tile(struct player *pplayer, struct tile *ptile); 65 void map_hide_tile(struct player *pplayer, struct tile *ptile); 67 struct tile *ptile, int radius_sq); 74 bool map_is_known_and_seen(const struct tile *ptile, 94 void update_tile_knowledge(struct tile *ptile); 111 void map_clear_border(struct tile *ptile); 119 void terrain_changed(struct tile *ptile); 121 void fix_tile_on_terrain_change(struct tile *ptile, 126 void bounce_units_on_terrain_change(struct tile *ptile); [all …]
|
/dports/games/freeciv-nox11/freeciv-2.6.6/server/generator/ |
H A D | utilities.c | 74 return !pmap(ptile); in not_placed() 82 pmap(ptile) = TRUE; in map_set_placed() 90 pmap(ptile) = FALSE; in map_unset_placed() 98 whole_map_iterate(ptile) { in set_all_ocean_tiles_placed() 99 if (is_ocean_tile(ptile)) { in set_all_ocean_tiles_placed() 100 map_set_placed(ptile); in set_all_ocean_tiles_placed() 169 int_map[tile_index(ptile)] = frequencies[int_map[tile_index(ptile)]]; in adjust_int_map_filtered() 256 whole_map_iterate(ptile) { in recalculate_lake_surrounders() 393 whole_map_iterate(ptile) { in regenerate_lakes() 453 whole_map_iterate(ptile) { in assign_continent_numbers() [all …]
|
H A D | height_map.c | 39 if (near_singularity(ptile)) { in hmap_pole_factor() 66 whole_map_iterate(ptile) { in normalize_hmap_poles() 68 hmap(ptile) *= hmap_pole_factor(ptile); in normalize_hmap_poles() 71 hmap(ptile) = 0; in normalize_hmap_poles() 82 whole_map_iterate(ptile) { in renormalize_hmap_poles() 83 if (hmap(ptile) == 0) { in renormalize_hmap_poles() 90 hmap(ptile) /= factor; in renormalize_hmap_poles() 156 hmap(ptile) = (V); \ in gen5rec() 234 hmap(ptile) -= avoidedge; in make_pseudofractal1_hmap() 254 whole_map_iterate(ptile) { in make_pseudofractal1_hmap() [all …]
|
H A D | mapgen.c | 187 #define map_pos_is_low(ptile) ((hmap((ptile)) < hmap_low_level)) argument 306 || area_is_too_flat(ptile, hmap_mountain_level, hmap(ptile)))) { in make_relief() 401 map_set_placed(ptile); in place_terrain() 438 map_set_placed(ptile); in make_plain() 655 return hmap(ptile); in river_test_height_map() 896 struct tile *ptile; in make_rivers() local 1507 struct tile *ptile; in make_huts() local 1664 if (tile_continent(ptile) != pstate->isleindex || !not_placed(ptile)) { in fill_island() 1751 struct tile *ptile; in fill_island_rivers() local 1823 struct tile *ptile; in place_island() local [all …]
|
/dports/games/freeciv/freeciv-2.6.6/server/generator/ |
H A D | utilities.c | 74 return !pmap(ptile); in not_placed() 82 pmap(ptile) = TRUE; in map_set_placed() 90 pmap(ptile) = FALSE; in map_unset_placed() 98 whole_map_iterate(ptile) { in set_all_ocean_tiles_placed() 99 if (is_ocean_tile(ptile)) { in set_all_ocean_tiles_placed() 100 map_set_placed(ptile); in set_all_ocean_tiles_placed() 169 int_map[tile_index(ptile)] = frequencies[int_map[tile_index(ptile)]]; in adjust_int_map_filtered() 256 whole_map_iterate(ptile) { in recalculate_lake_surrounders() 393 whole_map_iterate(ptile) { in regenerate_lakes() 453 whole_map_iterate(ptile) { in assign_continent_numbers() [all …]
|
H A D | height_map.c | 39 if (near_singularity(ptile)) { in hmap_pole_factor() 66 whole_map_iterate(ptile) { in normalize_hmap_poles() 68 hmap(ptile) *= hmap_pole_factor(ptile); in normalize_hmap_poles() 71 hmap(ptile) = 0; in normalize_hmap_poles() 82 whole_map_iterate(ptile) { in renormalize_hmap_poles() 83 if (hmap(ptile) == 0) { in renormalize_hmap_poles() 90 hmap(ptile) /= factor; in renormalize_hmap_poles() 156 hmap(ptile) = (V); \ in gen5rec() 234 hmap(ptile) -= avoidedge; in make_pseudofractal1_hmap() 254 whole_map_iterate(ptile) { in make_pseudofractal1_hmap() [all …]
|
/dports/games/freeciv/freeciv-2.6.6/server/advisors/ |
H A D | advgoto.c | 48 struct tile *ptile) in adv_follow_path() argument 58 punit->goto_tile = ptile; in adv_follow_path() 92 if (same_pos(unit_tile(punit), ptile)) { in adv_unit_execute_path() 128 (void) adv_unit_move(punit, ptile); in adv_unit_execute_path() 159 if (is_enemy_unit_tile(ptile, pplayer) in adv_unit_move() 169 && adv_danger_at(punit, ptile) in adv_unit_move() 200 adjc_iterate(ptile, atile) { in adv_could_be_my_zoc() 287 struct city *pcity = tile_city(ptile); in adv_danger_at() 311 adjc_iterate(ptile, ptile1) { in adv_danger_at() 340 if (is_stack_vulnerable(ptile)) { in stack_value() [all …]
|
/dports/games/freeciv-nox11/freeciv-2.6.6/server/advisors/ |
H A D | advgoto.c | 48 struct tile *ptile) in adv_follow_path() argument 58 punit->goto_tile = ptile; in adv_follow_path() 92 if (same_pos(unit_tile(punit), ptile)) { in adv_unit_execute_path() 128 (void) adv_unit_move(punit, ptile); in adv_unit_execute_path() 159 if (is_enemy_unit_tile(ptile, pplayer) in adv_unit_move() 169 && adv_danger_at(punit, ptile) in adv_unit_move() 200 adjc_iterate(ptile, atile) { in adv_could_be_my_zoc() 287 struct city *pcity = tile_city(ptile); in adv_danger_at() 311 adjc_iterate(ptile, ptile1) { in adv_danger_at() 340 if (is_stack_vulnerable(ptile)) { in stack_value() [all …]
|
/dports/games/freeciv-nox11/freeciv-2.6.6/common/aicore/ |
H A D | citymap.c | 76 pcenter, ptile) { in citymap_turn_init() 82 citymap[tile_index(ptile)]++; in citymap_turn_init() 94 ptile) { in citymap_turn_init() 96 citymap[tile_index(ptile)]++; in citymap_turn_init() 124 id, TILE_XY(ptile), citymap[tile_index(ptile)]); in citymap_reserve_city_spot() 140 citymap[tile_index(ptile)] = -(id); in citymap_reserve_city_spot() 167 citymap[tile_index(ptile)] = -id; in citymap_reserve_tile() 175 int citymap_read(struct tile *ptile) in citymap_read() argument 177 return citymap[tile_index(ptile)]; in citymap_read() 184 bool citymap_is_reserved(struct tile *ptile) in citymap_is_reserved() argument [all …]
|
/dports/games/freeciv/freeciv-2.6.6/common/aicore/ |
H A D | citymap.c | 76 pcenter, ptile) { in citymap_turn_init() 82 citymap[tile_index(ptile)]++; in citymap_turn_init() 94 ptile) { in citymap_turn_init() 96 citymap[tile_index(ptile)]++; in citymap_turn_init() 124 id, TILE_XY(ptile), citymap[tile_index(ptile)]); in citymap_reserve_city_spot() 140 citymap[tile_index(ptile)] = -(id); in citymap_reserve_city_spot() 167 citymap[tile_index(ptile)] = -id; in citymap_reserve_tile() 175 int citymap_read(struct tile *ptile) in citymap_read() argument 177 return citymap[tile_index(ptile)]; in citymap_read() 184 bool citymap_is_reserved(struct tile *ptile) in citymap_is_reserved() argument [all …]
|
/dports/games/freeciv/freeciv-2.6.6/client/ |
H A D | mapctrl_common.c | 136 struct tile *ptile; in define_tiles_within_rectangle() local 145 if (!ptile) { in define_tiles_within_rectangle() 160 pcity = tile_city(ptile); in define_tiles_within_rectangle() 206 struct tile *ptile; in update_selection_rectangle() local 213 if (ptile == rec_tile) { in update_selection_rectangle() 216 rec_tile = ptile; in update_selection_rectangle() 490 do_unit_goto(ptile); in release_goto_button() 574 do_map_click(ptile, qtype); in action_button_pressed() 605 if (NULL != tile_worked(ptile) && tile_worked(ptile) == pcity) { in adjust_workers_button_pressed() 660 struct tile *ptile; in update_line() local [all …]
|
H A D | editor.c | 441 if (!ptile) { in tile_really_has_any_specials() 499 if (!ptile) { in editor_grab_tool() 607 return ptile != NULL; in can_edit_tile_properties() 619 if (!ptile) { in popup_properties() 648 struct tile *ptile; in editor_mouse_button_press() local 655 if (ptile == NULL) { in editor_mouse_button_press() 717 struct tile *ptile; in editor_end_selection_rectangle() local 729 if (ptile) { in editor_end_selection_rectangle() 740 if (ptile == NULL) { in editor_end_selection_rectangle() 861 if (!ptile) { in editor_mouse_move() [all …]
|
/dports/games/freeciv-nox11/freeciv-2.6.6/client/ |
H A D | mapctrl_common.c | 136 struct tile *ptile; in define_tiles_within_rectangle() local 145 if (!ptile) { in define_tiles_within_rectangle() 160 pcity = tile_city(ptile); in define_tiles_within_rectangle() 206 struct tile *ptile; in update_selection_rectangle() local 213 if (ptile == rec_tile) { in update_selection_rectangle() 216 rec_tile = ptile; in update_selection_rectangle() 490 do_unit_goto(ptile); in release_goto_button() 574 do_map_click(ptile, qtype); in action_button_pressed() 605 if (NULL != tile_worked(ptile) && tile_worked(ptile) == pcity) { in adjust_workers_button_pressed() 660 struct tile *ptile; in update_line() local [all …]
|
H A D | editor.c | 441 if (!ptile) { in tile_really_has_any_specials() 499 if (!ptile) { in editor_grab_tool() 607 return ptile != NULL; in can_edit_tile_properties() 619 if (!ptile) { in popup_properties() 648 struct tile *ptile; in editor_mouse_button_press() local 655 if (ptile == NULL) { in editor_mouse_button_press() 717 struct tile *ptile; in editor_end_selection_rectangle() local 729 if (ptile) { in editor_end_selection_rectangle() 740 if (ptile == NULL) { in editor_end_selection_rectangle() 861 if (!ptile) { in editor_mouse_move() [all …]
|
/dports/print/ghostscript9-agpl-base/ghostscript-9.52/base/ |
H A D | gxp1fill.c | 172 double bbw = ptile->bbox.q.x - ptile->bbox.p.x; in tile_by_steps() 173 double bbh = ptile->bbox.q.y - ptile->bbox.p.y; in tile_by_steps() 382 if (ptile->is_simple && ptile->cdev == NULL) { in gx_dc_pattern_fill_rectangle() 493 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_pure_masked_fill_rect() 538 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_devn_masked_fill_rect() 568 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_binary_masked_fill_rect() 598 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_colored_masked_fill_rect() 635 double bbw = ptile->bbox.q.x - ptile->bbox.p.x; in tile_by_steps_trans() 636 double bbh = ptile->bbox.q.y - ptile->bbox.p.y; in tile_by_steps_trans() 800 mid_copy_width = ptile->ttrans->rect.q.x - ptile->ttrans->rect.p.x; in tile_rect_trans_simple() [all …]
|
/dports/print/ghostscript9-agpl-x11/ghostscript-9.52/base/ |
H A D | gxp1fill.c | 172 double bbw = ptile->bbox.q.x - ptile->bbox.p.x; in tile_by_steps() 173 double bbh = ptile->bbox.q.y - ptile->bbox.p.y; in tile_by_steps() 382 if (ptile->is_simple && ptile->cdev == NULL) { in gx_dc_pattern_fill_rectangle() 493 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_pure_masked_fill_rect() 538 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_devn_masked_fill_rect() 568 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_binary_masked_fill_rect() 598 code = tile_by_steps(&state, x, y, w, h, ptile, &ptile->tmask, in gx_dc_colored_masked_fill_rect() 635 double bbw = ptile->bbox.q.x - ptile->bbox.p.x; in tile_by_steps_trans() 636 double bbh = ptile->bbox.q.y - ptile->bbox.p.y; in tile_by_steps_trans() 800 mid_copy_width = ptile->ttrans->rect.q.x - ptile->ttrans->rect.p.x; in tile_rect_trans_simple() [all …]
|
/dports/games/freeciv-nox11/freeciv-2.6.6/ai/threaded/ |
H A D | taicity.c | 71 data->task.ptile = task.ptile; in tai_city_worker_requests_create() 108 if (tile_worked(ptile) == pcity in tai_tile_worker_task_select() 156 if (tile_worked(ptile) == pcity) { in tai_tile_worker_task_select() 159 worked->ptile = ptile; in tai_tile_worker_task_select() 174 unworked->ptile = ptile; in tai_tile_worker_task_select() 282 worked->ptile = ptile; in tai_tile_worker_task_select() 297 unworked->ptile = ptile; in tai_tile_worker_task_select() 337 if (worked.ptile == NULL in tai_city_worker_task_select() 349 if (selected->ptile != NULL) { in tai_city_worker_task_select() 368 task->ptile = selected->ptile; in tai_city_worker_task_select() [all …]
|
/dports/games/freeciv/freeciv-2.6.6/ai/threaded/ |
H A D | taicity.c | 71 data->task.ptile = task.ptile; in tai_city_worker_requests_create() 108 if (tile_worked(ptile) == pcity in tai_tile_worker_task_select() 156 if (tile_worked(ptile) == pcity) { in tai_tile_worker_task_select() 159 worked->ptile = ptile; in tai_tile_worker_task_select() 174 unworked->ptile = ptile; in tai_tile_worker_task_select() 282 worked->ptile = ptile; in tai_tile_worker_task_select() 297 unworked->ptile = ptile; in tai_tile_worker_task_select() 337 if (worked.ptile == NULL in tai_city_worker_task_select() 349 if (selected->ptile != NULL) { in tai_city_worker_task_select() 368 task->ptile = selected->ptile; in tai_city_worker_task_select() [all …]
|