MCPcopy Create free account

hub / github.com/Tencent/TStarBot2 / functions

Functions927 in github.com/Tencent/TStarBot2

↓ 32 callersMethodunit
(self)
tstarbot/data/pool/scout_pool.py:19
↓ 26 callersMethodget
(self, idx)
tstarbot/data/queue/command_queue_base.py:32
↓ 23 callersMethodhas_building_built
(self, unit_type_list, alliance=1)
tstarbot/production_strategy/base_production_mgr.py:214
↓ 21 callersMethodrun
(self, n)
tstarbot/sandbox/agents/demo_bot.py:90
↓ 19 callersMethoddist_between_units
(u1, u2)
tstarbot/combat/micro/micro_base.py:254
↓ 19 callersMethodput
(self, idx, cmd_type, param)
tstarbot/data/queue/command_queue_base.py:18
↓ 18 callersMethodunit_in_progress
(self, unit_type, alliance=1)
tstarbot/production_strategy/base_production_mgr.py:239
↓ 17 callersMethodattack_pos
(u, pos)
tstarbot/combat/micro/micro_base.py:55
↓ 17 callersMethodfind_closest_enemy
(self, u, enemies)
tstarbot/combat/micro/micro_base.py:119
↓ 15 callersMethod_move_to_target
(self, pos)
tstarbot/scout/tasks/scout_task.py:42
↓ 15 callersMethodpush
(self, cmd)
tstarbot/data/queue/combat_command_queue.py:50
↓ 14 callersMethodhas_unit
(self, unit_type, alliance=1)
tstarbot/production_strategy/base_production_mgr.py:205
↓ 14 callersMethodpush_actions
(self, actions)
tstarbot/act/act_mgr.py:13
↓ 13 callersMethod_distance
(self, pos_a, pos_b)
tstarbot/combat_strategy/combat_strategy_mgr.py:786
↓ 13 callersFunctioncollect_units_by_tags
(units, tags)
tstarbot/util/unit.py:14
↓ 13 callersMethodlocal_to_global
(self, local_xy)
tstarbot/building/placer.py:138
↓ 13 callersMethodmove_pos
(u, pos)
tstarbot/combat/micro/micro_base.py:35
↓ 11 callersMethodupdate
(self, obs)
tstarbot/sandbox/bot_base.py:6
↓ 10 callersMethodfind_units_wihtin_range
(u, units, r=6)
tstarbot/combat/micro/micro_base.py:160
↓ 10 callersMethodupdate
(self, dc)
tstarbot/combat/micro/micro_base.py:28
↓ 9 callersMethodact
(self, u, pos, mode)
tstarbot/combat/micro/viper_micro.py:85
↓ 9 callersMethodassigned_harvesters
(self, base_item)
tstarbot/production_strategy/base_zerg_production_mgr.py:375
↓ 8 callersMethodcalculate_distances
(self, x1, y1, x2, y2)
tstarbot/data/pool/base_pool.py:307
↓ 8 callersFunctioncollect_units
(units, unit_type, owner=1)
tstarbot/sandbox/building_mgr.py:23
↓ 8 callersMethodcreate_squad
(self, units, uniform=None)
tstarbot/combat_strategy/army.py:22
↓ 8 callersMethodget_employ_workers
(self, employ_status)
tstarbot/data/pool/worker_pool.py:68
↓ 8 callersMethodqueue_as_highest
(self, unit_id)
tstarbot/production_strategy/util.py:100
↓ 8 callersMethodstep
(self, timestep)
tstarbot/agents/zerg_agent.py:50
↓ 8 callersMethodupdate
(self, timestep)
tstarbot/data/data_context.py:37
↓ 7 callersFunctionappend_valid_action
(actions, action)
tstarbot/resource/resource_mgr.py:74
↓ 7 callersFunctioncollect_units_by_type_alliance
return units with the specified unit type and alliance
tstarbot/util/unit.py:8
↓ 7 callersMethodfind_base_belong
(self, unit)
tstarbot/data/pool/base_pool.py:187
↓ 7 callersMethodrun_away_from_closest_enemy
(u, closest_enemy_unit, run_away_factor=0.2)
tstarbot/combat/micro/micro_base.py:105
↓ 6 callersMethodbase_unit
(self)
tstarbot/production_strategy/base_production_mgr.py:131
↓ 6 callersFunctionbitmap2array
(image)
tstarbot/data/pool/map_tool.py:8
↓ 6 callersFunctiondist_to_pos
return Euclidean distance ||unit - [x,y]||
tstarbot/util/geom.py:22
↓ 6 callersMethodhold_fire
(u)
tstarbot/combat/micro/micro_base.py:80
↓ 6 callersMethodideal_harvesters
(self, base_item)
tstarbot/production_strategy/base_zerg_production_mgr.py:368
↓ 6 callersFunctionis_overlap
(unit, pos_xy, dist_thres=1)
tstarbot/building/placer.py:20
↓ 6 callersMethodscout
(self)
tstarbot/scout/tasks/scout_task.py:24
↓ 5 callersMethod_cal_square_dist
(u1, u2)
tstarbot/combat_strategy/combat_strategy_mgr.py:889
↓ 5 callersMethod_judge_task_done
(self)
tstarbot/scout/tasks/explor_task.py:254
↓ 5 callersMethod_move_to_home
(self)
tstarbot/scout/tasks/scout_task.py:50
↓ 5 callersMethod_noop
(self)
tstarbot/scout/tasks/scout_task.py:58
↓ 5 callersMethod_organize_army_by_size
(self, size)
tstarbot/combat_strategy/combat_strategy_mgr.py:121
↓ 5 callersMethodadd_scout
(self, u)
tstarbot/data/pool/scout_pool.py:119
↓ 5 callersFunctioncollect_units
(units, unit_type, owner=1)
tstarbot/sandbox/resource_mgr_old2.py:15
↓ 5 callersFunctioncollect_units
(units, unit_type, owner=1)
tstarbot/sandbox/resource_mgr_old3.py:17
↓ 5 callersMethodcurrent_item
(self)
tstarbot/production_strategy/util.py:90
↓ 5 callersMethodget_by_tag
(self, tag)
tstarbot/data/pool/worker_pool.py:116
↓ 5 callersMethodget_delta_pos
(self)
tstarbot/building/placer.py:85
↓ 5 callersMethodput
push an item at left
tstarbot/data/queue/build_command_queue.py:25
↓ 5 callersMethodsize
(self)
tstarbot/production_strategy/util.py:84
↓ 4 callersMethod__init__
(self, pos_origin, pos_ref)
tstarbot/building/placer.py:133
↓ 4 callersMethod_check_scout_lost
(self)
tstarbot/scout/tasks/scout_task.py:81
↓ 4 callersMethod_find_available_worker_for_building
(self, dc, base_instance)
tstarbot/building/building_mgr.py:253
↓ 4 callersMethod_update_state_by_tag
(self, tag, state)
tstarbot/data/pool/worker_pool.py:203
↓ 4 callersFunctionact_build_by_self
(builder_tag, ability_id)
tstarbot/util/act.py:7
↓ 4 callersMethodclear
(self)
tstarbot/combat_strategy/renderer.py:41
↓ 4 callersFunctionfind_first_if
(units, f=lambda x: True)
tstarbot/util/unit.py:55
↓ 4 callersMethodgas_unit
(self)
tstarbot/production_strategy/base_production_mgr.py:122
↓ 4 callersMethodget
pop an item from right
tstarbot/data/queue/build_command_queue.py:29
↓ 4 callersFunctionget_unfilled_workers
(unit)
tstarbot/resource/resource_mgr.py:34
↓ 4 callersMethodhas_upgrade
(self, dc, upgrade_type_list)
tstarbot/production_strategy/base_production_mgr.py:224
↓ 4 callersMethodis_run_away
(self, u, closest_enemy, self_combat_units)
tstarbot/combat/micro/micro_base.py:279
↓ 4 callersMethodis_unit_in_area
(self, pos_x, pos_y)
tstarbot/data/pool/base_pool.py:27
↓ 4 callersFunctionmean_pos
(units)
tstarbot/util/geom.py:34
↓ 4 callersMethodreset
(self)
tstarbot/building/placer.py:171
↓ 4 callersMethodsupply_unit
(self)
tstarbot/production_strategy/base_production_mgr.py:113
↓ 4 callersMethodunit
(self)
tstarbot/data/pool/building_pool.py:10
↓ 3 callersMethod_arrive_xy
(self, u, target_x, target_y, error)
tstarbot/scout/tasks/force_scout.py:173
↓ 3 callersMethod_create_fixed_size_mutalisk_squads
(self, squad_size, mutalisk_uniform, unique=False)
tstarbot/combat_strategy/combat_strategy_mgr.py:188
↓ 3 callersMethod_distance
(self, pos_a, pos_b)
tstarbot/data/pool/enemy_pool.py:218
↓ 3 callersMethod_get_employ_workers
(self, employ_status)
tstarbot/data/pool/worker_pool.py:257
↓ 3 callersMethod_harvest_on_base
(self, worker, base)
tstarbot/resource/resource_mgr.py:333
↓ 3 callersMethod_remove_state_by_tag
(self, tag, state)
tstarbot/data/pool/worker_pool.py:215
↓ 3 callersMethod_transform
(self, pos)
tstarbot/combat_strategy/renderer.py:44
↓ 3 callersMethod_unit_dispatch
(self, units)
tstarbot/data/pool/base_pool.py:638
↓ 3 callersFunctionact_build_by_pos
(builder_tag, target_pos, ability_id)
tstarbot/util/act.py:22
↓ 3 callersFunctiondist
(unit1, unit2)
tstarbot/sandbox/building_mgr.py:14
↓ 3 callersMethoddist_between_units_with_radius
(self, u1, u2)
tstarbot/combat/micro/micro_base.py:257
↓ 3 callersMethodemploy
(self, status)
tstarbot/data/pool/worker_pool.py:29
↓ 3 callersMethodempty
(self)
tstarbot/data/queue/build_command_queue.py:33
↓ 3 callersMethodfind_closest_enemy
(self, u, enemies)
tstarbot/sandbox/agents/rule_micro_agent.py:115
↓ 3 callersFunctionfind_nearest_to_pos
find the nearest one to pos within the list 'units'
tstarbot/util/unit.py:41
↓ 3 callersMethodfind_strongest_unit_hp
(units)
tstarbot/combat/micro/micro_base.py:193
↓ 3 callersMethodfood_cap
(self)
tstarbot/production_strategy/base_production_mgr.py:185
↓ 3 callersFunctionfunc_is_harvesting_local_mineral
(base_instance)
tstarbot/resource/resource_mgr.py:58
↓ 3 callersMethodget_atk_range
(self, unit_type)
tstarbot/combat/micro/micro_base.py:216
↓ 3 callersMethodget_drones
(self)
tstarbot/sandbox/agents/demo_bot.py:38
↓ 3 callersMethodget_hatcherys
(self)
tstarbot/sandbox/agents/demo_bot.py:41
↓ 3 callersFunctionget_target_tag
(unit, idx=0)
tstarbot/resource/resource_mgr.py:20
↓ 3 callersMethodget_workers_by_state
(self, state)
tstarbot/data/pool/worker_pool.py:122
↓ 3 callersFunctionis_on_creep
(creep_map, pos_xy, radius)
tstarbot/building/placer.py:25
↓ 3 callersMethodmove_dir
(u, direction)
tstarbot/combat/micro/micro_base.py:44
↓ 3 callersFunctionpolar_to_cart
(rho, theta)
tstarbot/util/geom.py:8
↓ 3 callersMethodpop_actions
(self)
tstarbot/act/act_mgr.py:19
↓ 3 callersMethodset_build_order
(self, unit_list)
tstarbot/production_strategy/util.py:73
↓ 3 callersMethodsetup
(self)
tstarbot/sandbox/battle_1v1.py:104
↓ 3 callersMethodstatus
(self)
tstarbot/scout/tasks/scout_task.py:30
next →1–100 of 927, ranked by callers