Home
last modified time | relevance | path

Searched refs:ZOOM_LOC_WIDTH (Results 1 – 25 of 34) sorted by relevance

12

/dports/games/7kaa/7kaa-2.15.4p1/src/
H A DOTOWNDRW.cpp57 int sectionX1 = loc_x1 * ZOOM_LOC_WIDTH; in draw()
62 int townX1 = ZOOM_X1 + (loc_x1-world.zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH; in draw()
65 …townX1 += (STD_TOWN_LOC_WIDTH * ZOOM_LOC_WIDTH - get_bitmap_width(townLayout->ground_bitmap_ptr)… in draw()
186 int srcX = ( ZOOM_X1 + (loc_x1-world.zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_detect_link_line()
187 + ZOOM_X1 + (loc_x2-world.zoom_matrix->top_x_loc+1) * ZOOM_LOC_WIDTH ) / 2; in draw_detect_link_line()
201 firmX = ( ZOOM_X1 + (firmPtr->loc_x1-world.zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_detect_link_line()
202 + ZOOM_X1 + (firmPtr->loc_x2-world.zoom_matrix->top_x_loc+1) * ZOOM_LOC_WIDTH ) / 2; in draw_detect_link_line()
290 townX = ( ZOOM_X1 + (townPtr->loc_x1-world.zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_detect_link_line()
291 + ZOOM_X1 + (townPtr->loc_x2-world.zoom_matrix->top_x_loc+1) * ZOOM_LOC_WIDTH ) / 2; in draw_detect_link_line()
316 townX = ( ZOOM_X1 + (townPtr->loc_x1-world.zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_detect_link_line()
[all …]
H A DOFIRMDRW.cpp78 ->draw_at(loc_x1*ZOOM_LOC_WIDTH, loc_y1*ZOOM_LOC_HEIGHT, NULL, displayLayer); in draw()
143 int drawX = loc_x1 * ZOOM_LOC_WIDTH - world.view_top_x + ZOOM_X1; in draw_full_size()
147 drawX = (loc_x2+1)*ZOOM_LOC_WIDTH - FLAG_WIDTH - world.view_top_x + ZOOM_X1; in draw_full_size()
175 x1 = loc_x1 * ZOOM_LOC_WIDTH - World::view_top_x + firmBitmap->offset_x; in draw_full_size()
259 int drawX = loc_x1 * ZOOM_LOC_WIDTH - world.view_top_x + ZOOM_X1; in draw_full_size()
263 drawX = (loc_x2+1)*ZOOM_LOC_WIDTH - FLAG_WIDTH - world.view_top_x + ZOOM_X1; in draw_full_size()
322 int srcX = ( ZOOM_X1 + (loc_x1-world.zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_detect_link_line()
323 + ZOOM_X1 + (loc_x2-world.zoom_matrix->top_x_loc+1) * ZOOM_LOC_WIDTH ) / 2; in draw_detect_link_line()
337 firmX = ( ZOOM_X1 + (firmPtr->loc_x1-world.zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_detect_link_line()
384 townX = ( ZOOM_X1 + (townPtr->loc_x1-world.zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_detect_link_line()
[all …]
H A DOUNITDRW.cpp150 int maxHitBarWidth = ZOOM_LOC_WIDTH * sprite_info->loc_width - 11; in draw()
209 maxHitBarWidth = ZOOM_LOC_WIDTH - 11; in draw_selected()
211 maxHitBarWidth = ZOOM_LOC_WIDTH; in draw_selected()
218 maxHitBarWidth = ZOOM_LOC_WIDTH*2 - 22; in draw_selected()
220 dispX1 = ZOOM_X1 + cur_x - World::view_top_x - ZOOM_LOC_WIDTH/2 + 11; in draw_selected()
294 maxHitBarWidth = ZOOM_LOC_WIDTH - 11; in draw_skill_icon()
296 maxHitBarWidth = ZOOM_LOC_WIDTH; in draw_skill_icon()
303 maxHitBarWidth = ZOOM_LOC_WIDTH*2 - 22; in draw_skill_icon()
305 dispX1 = ZOOM_X1 + cur_x - World::view_top_x - ZOOM_LOC_WIDTH/2 + 11; in draw_skill_icon()
468 int maxHitBarWidth = ZOOM_LOC_WIDTH * sprite_info->loc_width - 11; in draw_outlined()
H A DOSPRITE2.cpp66 …ve_x_pixel_array[] = { 0, ZOOM_LOC_WIDTH, ZOOM_LOC_WIDTH, ZOOM_LOC_WIDTH, 0, -ZOOM_LOC_WIDTH, -ZOO…
81 …err_when(desX<0 || desY<0 || desX>=MAX_WORLD_X_LOC*ZOOM_LOC_WIDTH || desY>=MAX_WORLD_Y_LOC*ZOOM_LO… in sprite_move()
310 …err_when(abs(cur_x-next_x)>ZOOM_LOC_WIDTH*debugStepMagn1 || abs(cur_y-next_y)>ZOOM_LOC_HEIGHT*debu… in process_move()
395 …err_when(abs(cur_x-next_x)>ZOOM_LOC_WIDTH*debugStepMagn1 || abs(cur_y-next_y)>ZOOM_LOC_HEIGHT*debu… in process_move()
H A DOWORLD_Z.cpp186 …ineFromX = unitPtr->go_x - world.zoom_matrix->top_x_loc*ZOOM_LOC_WIDTH + ZOOM_X1 + ZOOM_LOC_WIDTH/… in draw_unit_path_on_zoom_map()
188 …lineToX = unitPtr->cur_x - world.zoom_matrix->top_x_loc*ZOOM_LOC_WIDTH + ZOOM_X1 + ZOOM_LOC_WIDTH/… in draw_unit_path_on_zoom_map()
197 … = (resultNode1->node_x - world.zoom_matrix->top_x_loc)*ZOOM_LOC_WIDTH + ZOOM_X1 + ZOOM_LOC_WIDTH/… in draw_unit_path_on_zoom_map()
201 … = (resultNode2->node_x - world.zoom_matrix->top_x_loc)*ZOOM_LOC_WIDTH + ZOOM_X1 + ZOOM_LOC_WIDTH/… in draw_unit_path_on_zoom_map()
248 … = (resultNode1->node_x - world.zoom_matrix->top_x_loc)*ZOOM_LOC_WIDTH + ZOOM_X1 + ZOOM_LOC_WIDTH/… in draw_unit_way_point_on_zoom_map()
258 … = (resultNode2->node_x - world.zoom_matrix->top_x_loc)*ZOOM_LOC_WIDTH + ZOOM_X1 + ZOOM_LOC_WIDTH/… in draw_unit_way_point_on_zoom_map()
380 …snow_res[snowMapId]->draw_at(xLoc*ZOOM_LOC_WIDTH+ZOOM_LOC_WIDTH/2, yLoc*ZOOM_LOC_HEIGHT+ZOOM_LOC_H… in draw()
865 int x1 = ZOOM_X1 + xLoc * ZOOM_LOC_WIDTH; in draw_build_marker()
910 xLoc = (mouse.cur_x-ZOOM_X1)/ZOOM_LOC_WIDTH; in draw_god_cast_range()
931 x1 = ZOOM_X1 + xLoc * ZOOM_LOC_WIDTH; in draw_god_cast_range()
[all …]
H A DOB_HOMIN.cpp73 max_step = char((attackInfo->attack_range * ZOOM_LOC_WIDTH + speed-1)/ speed); in init()
147 go_x = unitPtr->cur_x + ZOOM_LOC_WIDTH / 2; in process_move()
170 …get_x_loc = (cur_x + adjX) + (int)(go_x-(cur_x+adjX)) / (actualStep - total_step) / ZOOM_LOC_WIDTH; in process_move()
219 next_x = cur_x = target_x_loc * ZOOM_LOC_WIDTH; in process_move()
H A DOBULLET.cpp107 …go_x = target_x_loc * ZOOM_LOC_WIDTH + ZOOM_LOC_WIDTH/2 - spriteFrame->offset_x - spriteFrame->w… in init()
159 next_x = cur_x = target_x_loc * ZOOM_LOC_WIDTH; in process_move()
356 float attackDamage = attenuated_damage(x * ZOOM_LOC_WIDTH, y * ZOOM_LOC_HEIGHT ); in hit_building()
400 float attackDamage = attenuated_damage(x * ZOOM_LOC_WIDTH, y * ZOOM_LOC_HEIGHT ); in hit_wall()
613 …short d = misc.points_distance(curX, curY, target_x_loc * ZOOM_LOC_WIDTH, target_y_loc * ZOOM_LOC_… in attenuated_damage()
H A DOBULLETA.cpp132 int originX = startXLoc*ZOOM_LOC_WIDTH; in bullet_path_possible()
134 int goX = destXLoc*ZOOM_LOC_WIDTH; in bullet_path_possible()
146 int curX = originX + ZOOM_LOC_WIDTH/2; in bullet_path_possible()
158 curXLoc = curX/ZOOM_LOC_WIDTH; in bullet_path_possible()
H A DOUNITS.cpp290 …err_when(cur_action==SPRITE_MOVE && cur_x==move_to_x_loc*ZOOM_LOC_WIDTH && cur_y==move_to_y_loc*ZO… in ship_to_beach()
348 cur_x==move_to_x_loc*ZOOM_LOC_WIDTH && cur_y==move_to_y_loc*ZOOM_LOC_HEIGHT); in ship_to_beach()
473 if(cur_x==firstNodePtr->node_x*ZOOM_LOC_WIDTH && cur_y==firstNodePtr->node_y*ZOOM_LOC_HEIGHT) in ship_to_beach_path_edit()
475 go_x = checkXLoc * ZOOM_LOC_WIDTH; in ship_to_beach_path_edit()
660 go_x = checkXLoc*ZOOM_LOC_WIDTH; in ship_leave_beach()
H A DOPOWER.cpp275 int curXLoc = world.zoom_matrix->top_x_loc + (mouseX-ZOOM_X1)/ZOOM_LOC_WIDTH; in detect_frame()
495 curXLoc = world.zoom_matrix->top_x_loc + (mouseX-ZOOM_X1)/ZOOM_LOC_WIDTH; in detect_action()
904 int curXLoc = world.zoom_matrix->top_x_loc + (curX-ZOOM_X1)/ZOOM_LOC_WIDTH; in test_detect()
1029 int selXLoc1 = topXLoc + (selX1-ZOOM_X1)/ZOOM_LOC_WIDTH; in detect_select()
1031 int selXLoc2 = topXLoc + (selX2-ZOOM_X1)/ZOOM_LOC_WIDTH; in detect_select()
1259 int selXLoc = topXLoc + (selX1-ZOOM_X1)/ZOOM_LOC_WIDTH; in detect_select()
1275 int selXLoc = topXLoc + (selX1-ZOOM_X1)/ZOOM_LOC_WIDTH; in detect_select()
1802 int centerX = (pFirm->loc_x1 + pFirm->loc_x2 +1)*ZOOM_LOC_WIDTH/2 - World::view_top_x; in choose_cursor()
1816 int centerX = (pTown->loc_x1 + pTown->loc_x2 +1)*ZOOM_LOC_WIDTH/2 - World::view_top_x; in choose_cursor()
1831 int centerX = (pFirm->loc_x1 + pFirm->loc_x2 +1)*ZOOM_LOC_WIDTH/2 - World::view_top_x; in choose_cursor()
[all …]
H A DOUNITAT.cpp1339 *xPtr = cur_x + ZOOM_LOC_WIDTH; in get_hit_x_y()
1343 *xPtr = cur_x + ZOOM_LOC_WIDTH; in get_hit_x_y()
1347 *xPtr = cur_x + ZOOM_LOC_WIDTH; in get_hit_x_y()
1355 *xPtr = cur_x - ZOOM_LOC_WIDTH; in get_hit_x_y()
1359 *xPtr = cur_x - ZOOM_LOC_WIDTH; in get_hit_x_y()
1363 *xPtr = cur_x - ZOOM_LOC_WIDTH; in get_hit_x_y()
H A DOWALLRES.cpp162 int x = selected_x_loc * ZOOM_LOC_WIDTH; in draw_selected()
172 vga_back.rect( x, y, x+ZOOM_LOC_WIDTH-1, y+ZOOM_LOC_HEIGHT-1, 1, OWN_SELECT_FRAME_COLOR ); in draw_selected()
224 int x1 = xLoc*ZOOM_LOC_WIDTH + offset_x - World::view_top_x; in draw()
H A DOSITEDRW.cpp169 int x1 = map_x_loc * ZOOM_LOC_WIDTH; in draw_selected()
171 int x2 = x1 + ZOOM_LOC_WIDTH - 1; in draw_selected()
H A DOUNITM.cpp59 …ve_x_pixel_array[] = { 0, ZOOM_LOC_WIDTH, ZOOM_LOC_WIDTH, ZOOM_LOC_WIDTH, 0, -ZOOM_LOC_WIDTH, -ZOO…
1356 err_when(cur_x==move_to_x_loc*ZOOM_LOC_WIDTH && cur_y==move_to_y_loc*ZOOM_LOC_HEIGHT); in next_move()
1360 sprite_move( resultNode->node_x*ZOOM_LOC_WIDTH, resultNode->node_y*ZOOM_LOC_HEIGHT ); in next_move()
1708 …err_when((cur_x%ZOOM_LOC_WIDTH==0 && cur_y%ZOOM_LOC_HEIGHT==0) && (cur_x!=next_x || cur_y!=next_y)… in process_move()
2893 err_when(cur_x%ZOOM_LOC_WIDTH || cur_y%ZOOM_LOC_HEIGHT); in set_idle()
2912 err_when(cur_x%ZOOM_LOC_WIDTH || cur_y%ZOOM_LOC_HEIGHT); in set_ready()
H A DOPLANT.cpp343 int absX1 = xLoc*ZOOM_LOC_WIDTH +innerX-ZOOM_LOC_WIDTH/2 +offset_x; in draw()
H A DOW_PLANT.cpp45 return ZOOM_LOC_WIDTH / 4 + misc.random(ZOOM_LOC_WIDTH/2); in rand_inner_x()
H A DOWORLD.cpp1302 int srcX = ( ZOOM_X1 + (srcXLoc1-zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_link_line()
1303 + ZOOM_X1 + (srcXLoc2-zoom_matrix->top_x_loc+1) * ZOOM_LOC_WIDTH ) / 2; in draw_link_line()
1353 townX = ( ZOOM_X1 + (townPtr->loc_x1-zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_link_line()
1354 + ZOOM_X1 + (townPtr->loc_x2-zoom_matrix->top_x_loc+1) * ZOOM_LOC_WIDTH ) / 2; in draw_link_line()
1413 firmX = ( ZOOM_X1 + (firmPtr->loc_x1-zoom_matrix->top_x_loc) * ZOOM_LOC_WIDTH in draw_link_line()
1414 + ZOOM_X1 + (firmPtr->loc_x2-zoom_matrix->top_x_loc+1) * ZOOM_LOC_WIDTH ) / 2; in draw_link_line()
H A DOSPRITE.cpp64 cur_x = startXLoc * ZOOM_LOC_WIDTH; in init()
H A DOHILLRES.cpp266 int absX1 = xLoc*ZOOM_LOC_WIDTH + offset_x; in draw()
H A DOUNITAC.cpp319 go_x = lastNode1->node_x * ZOOM_LOC_WIDTH; in burn()
1097 if(cur_x==firstNodePtr->node_x*ZOOM_LOC_WIDTH && cur_y==firstNodePtr->node_y*ZOOM_LOC_HEIGHT) in edit_path_to_surround()
1099 go_x = checkXLoc * ZOOM_LOC_WIDTH; in edit_path_to_surround()
H A DOUNITAT3.cpp209 go_x = preX*ZOOM_LOC_WIDTH; in move_to_range_attack()
223 go_x = preX*ZOOM_LOC_WIDTH; in move_to_range_attack()
H A DOSPRTRES.cpp396 int travelFrames = ZOOM_LOC_WIDTH * travelDistance / speed; in travel_days()
H A DOFIRMDIE.cpp375 … firmBitmap->draw_at(loc_x1*ZOOM_LOC_WIDTH, loc_y1*ZOOM_LOC_HEIGHT, colorRemapTable, displayLayer); in draw()
H A DOUNITHB.cpp403 err_when(cur_x%ZOOM_LOC_WIDTH || cur_y%ZOOM_LOC_HEIGHT); in handle_blocked_same_target_attack()
/dports/games/7kaa/7kaa-2.15.4p1/include/
H A DOWORLDMT.h70 #define ZOOM_LOC_WIDTH 32 macro
75 #define ZOOM_X_PIXELS (MAX_WORLD_X_LOC * ZOOM_LOC_WIDTH)

12