Home
last modified time | relevance | path

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

12

/dports/games/7kaa/7kaa-2.15.4p1/src/
H A DOW_WALL.cpp49 void World::build_wall(int townRecno, short initHp) in build_wall() argument
51 Town* townPtr = town_array[townRecno]; in build_wall()
65 short townRecno, short initHp) in build_wall_section() argument
100 open_west_gate(x1, westGateY, townRecno); in build_wall_section()
145 open_east_gate(x2, eastGateY, townRecno); in build_wall_section()
190 open_north_gate(northGateX, y1, townRecno); in build_wall_section()
240 open_south_gate(southGateX, y2, townRecno); in build_wall_section()
367 locPtr->wall_town_recno() == townRecno) in open_west_gate()
484 locPtr->wall_town_recno() == townRecno) in open_east_gate()
620 locPtr->wall_town_recno() == townRecno) in open_north_gate()
[all …]
H A DOTownNetwork.cpp67 if (*it == townRecno) in add_town()
71 _Towns.push_back(townRecno); in add_town()
78 if ( ! townRecno) in remove_town()
87 if (*it == townRecno) in remove_town()
294 pNetwork->add_town(townRecno); in town_created()
311 Town *pTown = town_array[townRecno]; in verify_town_network_before_merge()
335 pTN->add_town(townRecno); in verify_town_network_before_merge()
393 pNetwork->remove_town(townRecno); in town_destroyed()
459 towns.push(townRecno); in pulse()
501 towns.push(townRecno); in add_all_linked()
[all …]
H A DOAI_CAPT.cpp79 int townRecno; in think_capture_independent() local
82 for(townRecno=town_array.size(); townRecno>0; townRecno--) in think_capture_independent()
84 if(town_array.is_deleted(townRecno)) in think_capture_independent()
87 townPtr = town_array[townRecno]; in think_capture_independent()
228 Town* townPtr = town_array[townRecno]; in capture_expected_resistance()
262 Town* townPtr = town_array[townRecno]; in start_capture()
284 Town* captureTown = town_array[townRecno]; in capture_build_camp()
305 unitRecno = hire_best_capturer(townRecno, raceId); in capture_build_camp()
362 Town* targetTown = town_array[townRecno]; in find_best_capturer()
512 int Nation::hire_best_capturer(int townRecno, int raceId) in hire_best_capturer() argument
[all …]
H A DOTOWNA.cpp152 linkout(townRecno); in del_town()
451 for( townRecno=town_array.size() ; townRecno>0 ; townRecno-- ) in think_town_loc()
839 townRecno--; in disp_next()
841 if( townRecno < 1 ) in disp_next()
842 townRecno = size(); in disp_next()
846 townRecno++; in disp_next()
848 if( townRecno > size() ) in disp_next()
849 townRecno = 1; in disp_next()
852 if( is_deleted(townRecno) ) in disp_next()
855 townPtr = (*this)[townRecno]; in disp_next()
[all …]
H A DOAI_SPY.cpp54 Town* townPtr = town_array[townRecno]; in ai_assign_spy_to_town()
418 if( ++townRecno > townCount ) in think_assign_spy_target_town()
419 townRecno = 1; in think_assign_spy_target_town()
421 if( town_array.is_deleted(townRecno) ) in think_assign_spy_target_town()
424 townPtr = town_array[townRecno]; in think_assign_spy_target_town()
459 return townRecno; in think_assign_spy_target_town()
480 if( ++townRecno > townCount ) in think_assign_spy_own_town()
481 townRecno = 1; in think_assign_spy_own_town()
483 if( town_array.is_deleted(townRecno) ) in think_assign_spy_own_town()
486 townPtr = town_array[townRecno]; in think_assign_spy_own_town()
[all …]
H A DOREBEL.cpp173 if(rebelPtr->action_para==townRecno) in stop_attack_town()
442 Town* townPtr = town_array[townRecno]; in settle_town()
446 rebelPtr->town_recno = townRecno; in settle_town()
682 int i, townRecno; in think_settle_to() local
691 if( ++townRecno > town_array.size() ) in think_settle_to()
692 townRecno = 1; in think_settle_to()
694 if( town_array.is_deleted(townRecno) ) in think_settle_to()
697 townPtr = town_array[townRecno]; in think_settle_to()
733 int townRecno, bestTownRecno=0; in think_capture_attack_town() local
744 townPtr = town_array[townRecno]; in think_capture_attack_town()
[all …]
H A DOR_TOWN.cpp319 for( int townRecno=1 ; townRecno<=totalTown ; townRecno++ ) in town_filter() local
321 if( town_array.is_deleted(townRecno) ) in town_filter()
324 townPtr = town_array[townRecno]; in town_filter()
330 return townRecno; in town_filter()
344 int townRecno = town_filter(recNo); in put_town_rec() local
345 Town* townPtr = town_array[townRecno]; in put_town_rec()
H A DOTOWNDRW.cpp286 int townRecno = linked_town_array[i]; in draw_detect_link_line() local
288 Town *townPtr = town_array[townRecno]; in draw_detect_link_line()
309 int townRecno = townNetwork[i]; in draw_detect_link_line() local
310 Town *townPtr = town_array[townRecno]; in draw_detect_link_line()
313 if (townRecno == town_recno) continue; in draw_detect_link_line()
330 can_migrate(townRecno) ) in draw_detect_link_line()
340 err_when(town_array[townRecno]->population>MAX_TOWN_POPULATION); in draw_detect_link_line()
343 migrate_to(townRecno, COMMAND_PLAYER, migrateRaceId, (detectClick == 1 ? 1 : 10)); in draw_detect_link_line()
H A DOBATTLE.cpp433 int nationRecno, unitId, rankId, xLoc, yLoc, townRecno; in create_pregame_object() local
449 if( !townRecno ) in create_pregame_object()
457 Town* townPtr = town_array[townRecno]; in create_pregame_object()
474 kingUnitRecno = create_unit(townRecno, unitId, RANK_KING); in create_pregame_object()
505 if( !create_unit(townRecno, unitId, rankId) ) in create_pregame_object()
513 site_array.create_raw_site(0, townRecno); in create_pregame_object()
783 Town* townPtr = town_array[townRecno]; in create_town()
796 Town* townPtr = town_array[townRecno]; in create_town()
845 return townRecno; in create_town()
860 int Battle::create_unit(int townRecno, int unitId, int rankId) in create_unit() argument
[all …]
H A DOFIRM.cpp1082 if( townRecno ) in assign_settle()
1085 return townRecno; in assign_settle()
1106 return townRecno; in assign_settle()
2026 shortPtr[1] = townRecno; in pull_town_people()
2360 if( townRecno ) in create_unit()
2369 if( townRecno ) in create_unit()
2655 if( disappearFlag && townRecno ) in resign_all_worker()
2748 townRecno=1; in think_worker_migrate()
2931 shortPtr[1] = townRecno; in set_worker_home_town()
3135 int townRecno; in setup_link() local
[all …]
H A DOAI_QUER.cpp76 short townRecno = locPtr->town_recno(); in check_town_ready() local
78 if(town_array.is_deleted(townRecno)) in check_town_ready()
81 Town *townPtr = town_array[townRecno]; in check_town_ready()
H A DOMONSRES.cpp228 for( int townRecno=town_array.size() ; townRecno>0 ; townRecno-- ) in create_firm_monster() local
230 if( town_array.is_deleted(townRecno) ) in create_firm_monster()
233 Town* townPtr = town_array[townRecno]; in create_firm_monster()
H A DOTOWNBLD.cpp41 void TownBuild::draw(int townRecno, int absBaseX, int absBaseY) in draw() argument
67 Town* townPtr = town_array[townRecno]; in draw()
69 …mapTable = game.get_color_remap_table(townPtr->nation_recno, town_array.selected_recno==townRecno); in draw()
H A DOSPY2.cpp332 int townRecno = trueNation->think_assign_spy_target_town(THIS->race_id, spyRegionId); in think_mobile_spy_new_action() local
334 if( townRecno ) in think_mobile_spy_new_action()
336 Town* townPtr = town_array[townRecno]; in think_mobile_spy_new_action()
362 int townRecno = trueNation->think_assign_spy_own_town(THIS->race_id, spyRegionId); in think_mobile_spy_new_action() local
364 if( townRecno ) in think_mobile_spy_new_action()
366 Town* townPtr = town_array[townRecno]; in think_mobile_spy_new_action()
H A DOAI_CAP2.cpp260 int townRecno, curRating; in think_capture_enemy_town_target() local
269 for( townRecno=town_array.size() ; townRecno>0 ; townRecno-- ) in think_capture_enemy_town_target()
271 if( town_array.is_deleted(townRecno) ) in think_capture_enemy_town_target()
274 targetTown = town_array[townRecno]; in think_capture_enemy_town_target()
H A DOAI_INFO.cpp269 void Nation::add_town_info(short townRecno) in add_town_info() argument
272 AI_TOWN_INC_SIZE, 1, townRecno); in add_town_info()
281 void Nation::del_town_info(short townRecno) in del_town_info() argument
287 if( town_array[townRecno]->is_base_town ) in del_town_info()
296 AI_TOWN_INC_SIZE, -1, townRecno); in del_town_info()
H A DOCRC_STO.cpp105 for( short townRecno = 1; townRecno <= town_array.size(); ++townRecno) in record_towns() local
108 if( !town_array.is_deleted(townRecno) ) in record_towns()
109 checkNum = town_array[townRecno]->crc8(); in record_towns()
H A DOF_MARK2.cpp565 for( int townRecno=town_array.size() ; townRecno>0 ; townRecno-- ) in think_export_product() local
567 if( town_array.is_deleted(townRecno) ) in think_export_product()
570 townPtr = town_array[townRecno]; in think_export_product()
611 if( think_build_export_market(townRecno) ) in think_export_product()
624 int FirmMarket::think_build_export_market(int townRecno) in think_build_export_market() argument
626 Town* townPtr = town_array[townRecno]; in think_build_export_market()
H A DONEWS2.cpp66 void NewsArray::town_rebel(int townRecno, int rebelCount) in town_rebel() argument
68 Town* townPtr = town_array[townRecno]; in town_rebel()
82 newsPtr->set_loc( townPtr->center_x, townPtr->center_y, NEWS_LOC_TOWN, townRecno ); in town_rebel()
373 void NewsArray::town_abandoned(int townRecno) in town_abandoned() argument
375 Town* townPtr = town_array[townRecno]; in town_abandoned()
405 void NewsArray::town_surrendered(int townRecno, int toNationRecno) in town_surrendered() argument
407 Town* townPtr = town_array[townRecno]; in town_surrendered()
421 newsPtr->set_loc( townPtr->center_x, townPtr->center_y, NEWS_LOC_TOWN, townRecno ); in town_surrendered()
H A DOREMOTEM.cpp186 static short validate_town(short townRecno, unsigned flags = 0);
737 static short validate_town(short townRecno, unsigned flags) in validate_town() argument
741 if( townRecno && !town_array.is_deleted(townRecno) in validate_town()
742 && (townPtr = town_array[townRecno]) in validate_town()
744 return townRecno; in validate_town()
2466 for( int townRecno=town_array.size() ; townRecno>0 ; townRecno-- ) in town_auto_tax() local
2469 if( !town_array.is_deleted(townRecno) && (townPtr = town_array[townRecno]) && in town_auto_tax()
2473 if( town_array.selected_recno == townRecno ) in town_auto_tax()
2514 for( int townRecno=town_array.size() ; townRecno>0 ; townRecno-- ) in town_auto_grant() local
2517 if( !town_array.is_deleted(townRecno) && (townPtr = town_array[townRecno]) && in town_auto_grant()
[all …]
/dports/games/7kaa/7kaa-2.15.4p1/include/
H A DOTownNetwork.h56 void add_town(int townRecno);
57 void remove_town(int townRecno);
81 …int town_created(int townRecno, int nationRecno, short const *linkedTowns, int linkedCount); // Re…
82 void town_destroyed(int townRecno); // Call this when the town is about to be destroyed
83 void town_pre_changing_nation(int townRecno); // Call this just before a town changes nations
84 …void town_post_changing_nation(int townRecno, int newNationRecno); // Call this just after a town …
89 void verify_town_network_before_merge(int nationRecno, int townRecno);
93 …int pulse(int townRecno, int nationRecno); // Pulses the towns that are linked, and returns the am…
94 void add_all_linked(int townRecno, TownNetwork *pTownNetwork);
H A DOWORLD.h150 void restore_power(int xLoc1, int yLoc1, int xLoc2, int yLoc2, int townRecno, int firmRecno);
175 short townRecno, short initHp = 99);
176 void build_wall(int townRecno, short initHp = 99);
178 void open_west_gate(short x2, short y1, short townRecno);
179 void open_east_gate(short x1, short y1, short townRecno);
180 void open_north_gate(short x1, short y2, short townRecno);
181 void open_south_gate(short x1, short y1, short townRecno);
H A DONATION.h351 void add_town_info(short townRecno); // add town information
352 void del_town_info(short townRecno); // remove town information
487 int capture_expected_resistance(int townRecno, int *captureUnitRecno);
488 int start_capture(int townRecno, int captureUnitRecno);
489 int capture_build_camp(int townRecno, int raceId, int captureUnitRecno);
490 int find_best_capturer(int townRecno, int raceId, int& bestResistanceReduce);
491 int hire_best_capturer(int townRecno, int raceId);
545 int ai_assign_spy_to_town(int townRecno, int raceId=0);
H A DONEWS.h225 void town_rebel(int townRecno, int rebelCount);
235 void town_abandoned(int townRecno);
236 void town_surrendered(int townRecno, int toNationRecno);
H A DOREBEL.h115 void settle_town(int unitRecno, int townRecno);
119 void stop_attack_town(short townRecno);

12