Home
last modified time | relevance | path

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

/dports/games/7kaa/7kaa-2.15.4p1/src/
H A DOUNITAAT.cpp144 if(targetYLoc==0) in update_unreachable_table()
147 yLoc1=targetYLoc; in update_unreachable_table()
152 yLoc1=targetYLoc-1; in update_unreachable_table()
182 yLoc1 = targetYLoc-1; in update_unreachable_table()
183 yLoc2 = targetYLoc+targetHeight; in update_unreachable_table()
269 targetYLoc = firmPtr->loc_y1; in attack()
280 targetYLoc = townPtr->loc_y1; in attack()
307 shortPtr[1] = targetYLoc; in attack()
581 yLoc = targetYLoc + yOffset; in attack_unit()
843 yLoc = targetYLoc + yOffset; in attack_firm()
[all …]
H A DOU_GOD2.cpp91 int targetXLoc, targetYLoc; in think_dragon() local
103 int targetXLoc, targetYLoc; in think_chinese_dragon() local
127 int targetXLoc, targetYLoc; in think_viking_god() local
146 int targetXLoc, targetYLoc; in think_persian_god() local
181 targetYLoc = firmPtr->center_y; in think_persian_god()
203 int targetXLoc, targetYLoc; in think_japanese_god() local
323 targetYLoc = firmPtr->loc_y1; in think_god_attack_target()
343 targetYLoc = firmPtr->loc_y1; in think_god_attack_target()
365 int targetXLoc, targetYLoc; in think_maya_god() local
411 int targetXLoc, targetYLoc; in think_egyptian_god() local
[all …]
H A DOBULLETA.cpp189 short targetXLoc, short targetYLoc, char targetMobileType, in add_bullet_possible() argument
203 resultYLoc = targetYLoc; in add_bullet_possible()
241 if(startYLoc <= targetYLoc) in add_bullet_possible()
243 else if(startYLoc >= targetYLoc+adjHeight) in add_bullet_possible()
257 resultYLoc = targetYLoc+yOffset; in add_bullet_possible()
308 resultYLoc = targetYLoc+leftY; in add_bullet_possible()
325 resultYLoc = targetYLoc+rightY; in add_bullet_possible()
359 short targetYLoc = targetUnit->next_y_loc(); in add_bullet() local
362 attackYLoc >= targetYLoc && attackYLoc < targetYLoc+targetSpriteInfo->loc_height) in add_bullet()
406 short targetYLoc = yLoc; in add_bullet() local
[all …]
H A DOUNITAT3.cpp56 int targetYLoc = targetUnit->next_y_loc(); in move_try_to_range_attack() local
61 if(search(targetXLoc, targetYLoc, 1, SEARCH_MODE_TO_ATTACK, action_para)) in move_try_to_range_attack()
126 search(targetXLoc, targetYLoc, 1, searchMode, miscNo); in move_to_range_attack()
277 …err_when(targetXLoc<0 || targetXLoc>=MAX_WORLD_X_LOC || targetYLoc<0 || targetYLoc>=MAX_WORLD_Y_LO… in possible_place_for_range_attack()
293 int yLoc1 = MAX(targetYLoc-maxRange, 0); in possible_place_for_range_attack()
444 ship_surr_has_free_land(targetXLoc, targetYLoc, locPtr->region_id)) in space_for_attack()
647 yLoc1 = targetYLoc%2 ? targetYLoc-1 : targetYLoc-2; in space_around_target_ver2()
649 yLoc2 = (targetYLoc+targetHeight-1)%2 ? targetYLoc+targetHeight : targetYLoc+targetHeight+1; in space_around_target_ver2()
820 checkYLoc = targetYLoc+yShift; in ship_surr_has_free_land()
840 …err_when(targetXLoc<0 || targetXLoc>=MAX_WORLD_X_LOC || targetYLoc<0 || targetYLoc>=MAX_WORLD_Y_LO… in free_space_for_range_attack()
[all …]
H A DOAI_ATTK.cpp35 static int get_target_nation_recno(int targetXLoc, int targetYLoc);
120 err_when( targetYLoc < 0 || targetYLoc >= MAX_WORLD_Y_LOC ); in ai_attack_target()
123 ai_attack_target_y_loc = targetYLoc; in ai_attack_target()
191 targetXLoc, targetYLoc) <= EFFECTIVE_FIRM_TOWN_DISTANCE ) in ai_attack_target()
442 targetXLoc, targetYLoc ); in ai_attack_target()
501 yLoc = targetYLoc + yOffset; in ai_attack_order_nearby_mobile()
554 enable_should_attack_on_target(targetXLoc, targetYLoc); in ai_attack_order_nearby_mobile()
558 unitPtr->attack_unit(targetXLoc, targetYLoc); in ai_attack_order_nearby_mobile()
746 Location* locPtr = world.get_loc(targetXLoc, targetYLoc); in enable_should_attack_on_target()
769 static int get_target_nation_recno(int targetXLoc, int targetYLoc) in get_target_nation_recno() argument
[all …]
H A DOUNITAT2.cpp124 ai_original_target_y_loc = targetYLoc; in attack_unit()
173 int targetYLoc = targetUnit->next_y_loc(); in attack_unit() local
206 move_to(targetXLoc, targetYLoc); in attack_unit()
284 action_y_loc2 = targetYLoc; in attack_unit()
369 action_y_loc = targetYLoc; in attack_unit()
376 ai_original_target_y_loc = targetYLoc; in attack_unit()
590 int targetYLoc = targetUnit->next_y_loc(); in target_move() local
595 action_y_loc2 = action_y_loc = targetYLoc; in target_move()
826 int targetYLoc = targetUnit->next_y_loc(); in on_way_to_attack() local
1359 int targetYLoc = targetFirm->loc_y1; in process_attack_firm() local
[all …]
H A DOAI_SPY.cpp114 int Nation::ai_assign_spy(int targetXLoc, int targetYLoc, int spyRaceId, int mobileOnly) in ai_assign_spy() argument
120 Spy* spyPtr = ai_find_spy( targetXLoc, targetYLoc, spyRaceId, mobileOnly ); in ai_assign_spy()
128 unitRecno = hire_unit(SKILL_SPYING, spyRaceId, targetXLoc, targetYLoc); in ai_assign_spy()
135 unitRecno = train_unit(SKILL_SPYING, spyRaceId, targetXLoc, targetYLoc, trainTownRecno); in ai_assign_spy()
150 Location* locPtr = world.get_loc(targetXLoc, targetYLoc); in ai_assign_spy()
174 int actionRecno = add_action( targetXLoc, targetYLoc, in ai_assign_spy()
199 Spy* Nation::ai_find_spy(int targetXLoc, int targetYLoc, int spyRaceId, int mobileOnly) in ai_find_spy() argument
206 int targetRegionId = world.get_region_id(targetXLoc, targetYLoc); in ai_find_spy()
268 curRating = world.distance_rating(targetXLoc, targetYLoc, spyXLoc, spyYLoc); in ai_find_spy()
H A DOUNITAT.cpp460 int targetYLoc = attackUnit->next_y_loc(); in unit_auto_guarding() local
524 Location* locPtr = world.get_loc(targetXLoc, targetYLoc); in hit_building()
527 hit_firm(attackUnit, targetXLoc, targetYLoc, attackDamage, attackNationRecno); in hit_building()
529 hit_town(attackUnit, targetXLoc, targetYLoc, attackDamage, attackNationRecno); in hit_building()
554 Location* locPtr = world.get_loc(targetXLoc, targetYLoc); in hit_firm()
659 Location *locPtr = world.get_loc(targetXLoc, targetYLoc); in hit_town()
749 Location *locPtr = world.get_loc(targetXLoc, targetYLoc); in hit_wall()
760 world.correct_wall(targetXLoc, targetYLoc); in hit_wall()
786 if(curYLoc<targetYLoc) in cal_distance()
787 dispY = (targetYLoc - curYLoc - sprite_info->loc_height) + 1; in cal_distance()
[all …]
H A DOUNITD.cpp276 void Unit::defense_attack_firm(int targetXLoc, int targetYLoc) in defense_attack_firm() argument
279 attack_firm(targetXLoc, targetYLoc); in defense_attack_firm()
290 void Unit::defense_attack_town(int targetXLoc, int targetYLoc) in defense_attack_town() argument
293 attack_town(targetXLoc, targetYLoc); in defense_attack_town()
304 void Unit::defense_attack_wall(int targetXLoc, int targetYLoc) in defense_attack_wall() argument
307 attack_wall(targetXLoc, targetYLoc); in defense_attack_wall()
863 void Unit::monster_defend_attack_firm(int targetXLoc, int targetYLoc) in monster_defend_attack_firm() argument
866 attack_firm(targetXLoc, targetYLoc); in monster_defend_attack_firm()
877 void Unit::monster_defend_attack_town(int targetXLoc, int targetYLoc) in monster_defend_attack_town() argument
880 attack_town(targetXLoc, targetYLoc); in monster_defend_attack_town()
[all …]
H A DOB_FLAME.cpp33 void BulletFlame::init(char parentType, short parentRecno, short targetXLoc, short targetYLoc, char… in init() argument
36 Bullet::init(parentType, parentRecno, targetXLoc, targetYLoc, targetMobileType); in init()
H A DOB_HOMIN.cpp58 void BulletHoming::init(char parentType, short parentRecno, short targetXLoc, short targetYLoc, cha… in init() argument
60 Bullet::init(parentType, parentRecno, targetXLoc, targetYLoc, targetMobileType); in init()
87 Location *locPtr = world.get_loc(targetXLoc, targetYLoc); in init()
H A DOB_PROJ.cpp60 void Projectile::init(char parentType, short parentRecno, short targetXLoc, short targetYLoc, char … in init() argument
62 Bullet::init(parentType, parentRecno, targetXLoc, targetYLoc, targetMobileType); in init()
H A DOAI_MAR3.cpp392 int Nation::ai_sea_attack_target(int targetXLoc, int targetYLoc) in ai_sea_attack_target() argument
395 int targetRegionId = world.get_region_id(targetXLoc, targetYLoc); in ai_sea_attack_target()
428 unitMarine->attack_unit( targetXLoc, targetYLoc ); in ai_sea_attack_target()
H A DOUNITAAC.cpp209 int targetXLoc, targetYLoc; in stop_all_war() local
235 targetYLoc = unitPtr->action_y_loc; in stop_all_war()
242 targetYLoc = unitPtr->action_y_loc2; in stop_all_war()
277 targetLoc = world.get_loc(targetXLoc, targetYLoc); in stop_all_war()
302 int targetXLoc, targetYLoc; in stop_war_between() local
325 targetYLoc = unitPtr->action_y_loc; in stop_war_between()
332 targetYLoc = unitPtr->action_y_loc2; in stop_war_between()
367 targetLoc = world.get_loc(targetXLoc, targetYLoc); in stop_war_between()
H A DOAI_CAP2.cpp540 int Nation::mobile_defense_combat_level(int targetXLoc, int targetYLoc, int targetNationRecno, int … in mobile_defense_combat_level() argument
548 int yLoc1 = targetYLoc - scanRangeY; in mobile_defense_combat_level()
550 int yLoc2 = targetYLoc + scanRangeY; in mobile_defense_combat_level()
H A DOF_MONS.cpp1121 int targetXLoc= -1, targetYLoc, targetNationRecno=0; in think_attack_human() local
1139 targetYLoc = firmPtr->loc_y1; in think_attack_human()
1156 targetYLoc = townPtr->loc_y1; in think_attack_human()
1175 unit_array.attack(targetXLoc, targetYLoc, 0, patrol_unit_array, patrol_unit_count, COMMAND_AI, 0); in think_attack_human()
H A DOUNITI.cpp991 int Unit::idle_detect_wall_checking(int targetXLoc, int targetYLoc) in idle_detect_wall_checking() argument
993 Location *locPtr = world.get_loc(targetXLoc, targetYLoc); in idle_detect_wall_checking()
1025 if(space_for_attack(targetXLoc, targetYLoc, UNIT_LAND, 1, 1)) in idle_detect_wall_checking()
H A DOBULLET.cpp62 void Bullet::init(char parentType, short parentRecno, short targetXLoc, short targetYLoc, char targ… in init() argument
105 target_y_loc = targetYLoc; in init()
/dports/games/7kaa/7kaa-2.15.4p1/include/
H A DOUNIT.h499 void defense_attack_firm(int targetXLoc, int targetYLoc);
500 void defense_attack_town(int targetXLoc, int targetYLoc);
501 void defense_attack_wall(int targetXLoc, int targetYLoc);
586 int idle_detect_wall_checking(int targetXLoc, int targetYLoc);
642 int ship_surr_has_free_land(int targetXLoc, int targetYLoc, uint8_t regionId);
661 void defense_back_camp(int targetXLoc, int targetYLoc);
678 void monster_defend_attack_firm(int targetXLoc, int targetYLoc);
679 void monster_defend_attack_town(int targetXLoc, int targetYLoc);
680 void monster_defend_attack_wall(int targetXLoc, int targetYLoc);
682 void monster_defend_back_firm(int targetXLoc, int targetYLoc);
[all …]
H A DONATION.h439 …int ai_attack_target(int targetXLoc, int targetYLoc, int targetCombatLevel, int defenseMode=0, …
442 int ai_attack_order_nearby_mobile(int targetXLoc, int targetYLoc, int targetCombatLevel);
444 int ai_sea_attack_target(int targetXLoc, int targetYLoc);
461 void enable_should_attack_on_target(int targetXLoc, int targetYLoc);
501 …int mobile_defense_combat_level(int targetXLoc, int targetYLoc, int targetNationRecno, int retu…
544 int ai_assign_spy(int targetXLoc, int targetYLoc, int spyRaceId, int mobileOnly);
548 Spy* ai_find_spy(int targetXLoc, int targetYLoc, int targetRaceId, int mobileOnly);
H A DOBULLET.h71 …virtual void init(char parentType, short parentRecno, short targetXLoc, short targetYLoc, char ta…
110 short targetXLoc, short targetYLoc, char targetMobileType,
H A DOB_FLAME.h40 …void init(char parentType, short parentRecno, short targetXLoc, short targetYLoc, char targetMobi…
H A DOB_HOMIN.h44 …void init(char parentType, short parentRecno, short targetXLoc, short targetYLoc, char targetMobil…
H A DOB_PROJ.h42 …void init(char parentType, short parentRecno, short targetXLoc, short targetYLoc, char targetMobil…
H A DOU_GOD.h99 int think_god_attack_target(int& targetXLoc, int& targetYLoc);