Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/TStarBot2
/ functions
Functions
927 in github.com/Tencent/TStarBot2
⨍
Functions
927
◇
Types & classes
123
↓ 32 callers
Method
unit
(self)
tstarbot/data/pool/scout_pool.py:19
↓ 26 callers
Method
get
(self, idx)
tstarbot/data/queue/command_queue_base.py:32
↓ 23 callers
Method
has_building_built
(self, unit_type_list, alliance=1)
tstarbot/production_strategy/base_production_mgr.py:214
↓ 21 callers
Method
run
(self, n)
tstarbot/sandbox/agents/demo_bot.py:90
↓ 19 callers
Method
dist_between_units
(u1, u2)
tstarbot/combat/micro/micro_base.py:254
↓ 19 callers
Method
put
(self, idx, cmd_type, param)
tstarbot/data/queue/command_queue_base.py:18
↓ 18 callers
Method
unit_in_progress
(self, unit_type, alliance=1)
tstarbot/production_strategy/base_production_mgr.py:239
↓ 17 callers
Method
attack_pos
(u, pos)
tstarbot/combat/micro/micro_base.py:55
↓ 17 callers
Method
find_closest_enemy
(self, u, enemies)
tstarbot/combat/micro/micro_base.py:119
↓ 15 callers
Method
_move_to_target
(self, pos)
tstarbot/scout/tasks/scout_task.py:42
↓ 15 callers
Method
push
(self, cmd)
tstarbot/data/queue/combat_command_queue.py:50
↓ 14 callers
Method
has_unit
(self, unit_type, alliance=1)
tstarbot/production_strategy/base_production_mgr.py:205
↓ 14 callers
Method
push_actions
(self, actions)
tstarbot/act/act_mgr.py:13
↓ 13 callers
Method
_distance
(self, pos_a, pos_b)
tstarbot/combat_strategy/combat_strategy_mgr.py:786
↓ 13 callers
Function
collect_units_by_tags
(units, tags)
tstarbot/util/unit.py:14
↓ 13 callers
Method
local_to_global
(self, local_xy)
tstarbot/building/placer.py:138
↓ 13 callers
Method
move_pos
(u, pos)
tstarbot/combat/micro/micro_base.py:35
↓ 11 callers
Method
update
(self, obs)
tstarbot/sandbox/bot_base.py:6
↓ 10 callers
Method
find_units_wihtin_range
(u, units, r=6)
tstarbot/combat/micro/micro_base.py:160
↓ 10 callers
Method
update
(self, dc)
tstarbot/combat/micro/micro_base.py:28
↓ 9 callers
Method
act
(self, u, pos, mode)
tstarbot/combat/micro/viper_micro.py:85
↓ 9 callers
Method
assigned_harvesters
(self, base_item)
tstarbot/production_strategy/base_zerg_production_mgr.py:375
↓ 8 callers
Method
calculate_distances
(self, x1, y1, x2, y2)
tstarbot/data/pool/base_pool.py:307
↓ 8 callers
Function
collect_units
(units, unit_type, owner=1)
tstarbot/sandbox/building_mgr.py:23
↓ 8 callers
Method
create_squad
(self, units, uniform=None)
tstarbot/combat_strategy/army.py:22
↓ 8 callers
Method
get_employ_workers
(self, employ_status)
tstarbot/data/pool/worker_pool.py:68
↓ 8 callers
Method
queue_as_highest
(self, unit_id)
tstarbot/production_strategy/util.py:100
↓ 8 callers
Method
step
(self, timestep)
tstarbot/agents/zerg_agent.py:50
↓ 8 callers
Method
update
(self, timestep)
tstarbot/data/data_context.py:37
↓ 7 callers
Function
append_valid_action
(actions, action)
tstarbot/resource/resource_mgr.py:74
↓ 7 callers
Function
collect_units_by_type_alliance
return units with the specified unit type and alliance
tstarbot/util/unit.py:8
↓ 7 callers
Method
find_base_belong
(self, unit)
tstarbot/data/pool/base_pool.py:187
↓ 7 callers
Method
run_away_from_closest_enemy
(u, closest_enemy_unit, run_away_factor=0.2)
tstarbot/combat/micro/micro_base.py:105
↓ 6 callers
Method
base_unit
(self)
tstarbot/production_strategy/base_production_mgr.py:131
↓ 6 callers
Function
bitmap2array
(image)
tstarbot/data/pool/map_tool.py:8
↓ 6 callers
Function
dist_to_pos
return Euclidean distance ||unit - [x,y]||
tstarbot/util/geom.py:22
↓ 6 callers
Method
hold_fire
(u)
tstarbot/combat/micro/micro_base.py:80
↓ 6 callers
Method
ideal_harvesters
(self, base_item)
tstarbot/production_strategy/base_zerg_production_mgr.py:368
↓ 6 callers
Function
is_overlap
(unit, pos_xy, dist_thres=1)
tstarbot/building/placer.py:20
↓ 6 callers
Method
scout
(self)
tstarbot/scout/tasks/scout_task.py:24
↓ 5 callers
Method
_cal_square_dist
(u1, u2)
tstarbot/combat_strategy/combat_strategy_mgr.py:889
↓ 5 callers
Method
_judge_task_done
(self)
tstarbot/scout/tasks/explor_task.py:254
↓ 5 callers
Method
_move_to_home
(self)
tstarbot/scout/tasks/scout_task.py:50
↓ 5 callers
Method
_noop
(self)
tstarbot/scout/tasks/scout_task.py:58
↓ 5 callers
Method
_organize_army_by_size
(self, size)
tstarbot/combat_strategy/combat_strategy_mgr.py:121
↓ 5 callers
Method
add_scout
(self, u)
tstarbot/data/pool/scout_pool.py:119
↓ 5 callers
Function
collect_units
(units, unit_type, owner=1)
tstarbot/sandbox/resource_mgr_old2.py:15
↓ 5 callers
Function
collect_units
(units, unit_type, owner=1)
tstarbot/sandbox/resource_mgr_old3.py:17
↓ 5 callers
Method
current_item
(self)
tstarbot/production_strategy/util.py:90
↓ 5 callers
Method
get_by_tag
(self, tag)
tstarbot/data/pool/worker_pool.py:116
↓ 5 callers
Method
get_delta_pos
(self)
tstarbot/building/placer.py:85
↓ 5 callers
Method
put
push an item at left
tstarbot/data/queue/build_command_queue.py:25
↓ 5 callers
Method
size
(self)
tstarbot/production_strategy/util.py:84
↓ 4 callers
Method
__init__
(self, pos_origin, pos_ref)
tstarbot/building/placer.py:133
↓ 4 callers
Method
_check_scout_lost
(self)
tstarbot/scout/tasks/scout_task.py:81
↓ 4 callers
Method
_find_available_worker_for_building
(self, dc, base_instance)
tstarbot/building/building_mgr.py:253
↓ 4 callers
Method
_update_state_by_tag
(self, tag, state)
tstarbot/data/pool/worker_pool.py:203
↓ 4 callers
Function
act_build_by_self
(builder_tag, ability_id)
tstarbot/util/act.py:7
↓ 4 callers
Method
clear
(self)
tstarbot/combat_strategy/renderer.py:41
↓ 4 callers
Function
find_first_if
(units, f=lambda x: True)
tstarbot/util/unit.py:55
↓ 4 callers
Method
gas_unit
(self)
tstarbot/production_strategy/base_production_mgr.py:122
↓ 4 callers
Method
get
pop an item from right
tstarbot/data/queue/build_command_queue.py:29
↓ 4 callers
Function
get_unfilled_workers
(unit)
tstarbot/resource/resource_mgr.py:34
↓ 4 callers
Method
has_upgrade
(self, dc, upgrade_type_list)
tstarbot/production_strategy/base_production_mgr.py:224
↓ 4 callers
Method
is_run_away
(self, u, closest_enemy, self_combat_units)
tstarbot/combat/micro/micro_base.py:279
↓ 4 callers
Method
is_unit_in_area
(self, pos_x, pos_y)
tstarbot/data/pool/base_pool.py:27
↓ 4 callers
Function
mean_pos
(units)
tstarbot/util/geom.py:34
↓ 4 callers
Method
reset
(self)
tstarbot/building/placer.py:171
↓ 4 callers
Method
supply_unit
(self)
tstarbot/production_strategy/base_production_mgr.py:113
↓ 4 callers
Method
unit
(self)
tstarbot/data/pool/building_pool.py:10
↓ 3 callers
Method
_arrive_xy
(self, u, target_x, target_y, error)
tstarbot/scout/tasks/force_scout.py:173
↓ 3 callers
Method
_create_fixed_size_mutalisk_squads
(self, squad_size, mutalisk_uniform, unique=False)
tstarbot/combat_strategy/combat_strategy_mgr.py:188
↓ 3 callers
Method
_distance
(self, pos_a, pos_b)
tstarbot/data/pool/enemy_pool.py:218
↓ 3 callers
Method
_get_employ_workers
(self, employ_status)
tstarbot/data/pool/worker_pool.py:257
↓ 3 callers
Method
_harvest_on_base
(self, worker, base)
tstarbot/resource/resource_mgr.py:333
↓ 3 callers
Method
_remove_state_by_tag
(self, tag, state)
tstarbot/data/pool/worker_pool.py:215
↓ 3 callers
Method
_transform
(self, pos)
tstarbot/combat_strategy/renderer.py:44
↓ 3 callers
Method
_unit_dispatch
(self, units)
tstarbot/data/pool/base_pool.py:638
↓ 3 callers
Function
act_build_by_pos
(builder_tag, target_pos, ability_id)
tstarbot/util/act.py:22
↓ 3 callers
Function
dist
(unit1, unit2)
tstarbot/sandbox/building_mgr.py:14
↓ 3 callers
Method
dist_between_units_with_radius
(self, u1, u2)
tstarbot/combat/micro/micro_base.py:257
↓ 3 callers
Method
employ
(self, status)
tstarbot/data/pool/worker_pool.py:29
↓ 3 callers
Method
empty
(self)
tstarbot/data/queue/build_command_queue.py:33
↓ 3 callers
Method
find_closest_enemy
(self, u, enemies)
tstarbot/sandbox/agents/rule_micro_agent.py:115
↓ 3 callers
Function
find_nearest_to_pos
find the nearest one to pos within the list 'units'
tstarbot/util/unit.py:41
↓ 3 callers
Method
find_strongest_unit_hp
(units)
tstarbot/combat/micro/micro_base.py:193
↓ 3 callers
Method
food_cap
(self)
tstarbot/production_strategy/base_production_mgr.py:185
↓ 3 callers
Function
func_is_harvesting_local_mineral
(base_instance)
tstarbot/resource/resource_mgr.py:58
↓ 3 callers
Method
get_atk_range
(self, unit_type)
tstarbot/combat/micro/micro_base.py:216
↓ 3 callers
Method
get_drones
(self)
tstarbot/sandbox/agents/demo_bot.py:38
↓ 3 callers
Method
get_hatcherys
(self)
tstarbot/sandbox/agents/demo_bot.py:41
↓ 3 callers
Function
get_target_tag
(unit, idx=0)
tstarbot/resource/resource_mgr.py:20
↓ 3 callers
Method
get_workers_by_state
(self, state)
tstarbot/data/pool/worker_pool.py:122
↓ 3 callers
Function
is_on_creep
(creep_map, pos_xy, radius)
tstarbot/building/placer.py:25
↓ 3 callers
Method
move_dir
(u, direction)
tstarbot/combat/micro/micro_base.py:44
↓ 3 callers
Function
polar_to_cart
(rho, theta)
tstarbot/util/geom.py:8
↓ 3 callers
Method
pop_actions
(self)
tstarbot/act/act_mgr.py:19
↓ 3 callers
Method
set_build_order
(self, unit_list)
tstarbot/production_strategy/util.py:73
↓ 3 callers
Method
setup
(self)
tstarbot/sandbox/battle_1v1.py:104
↓ 3 callers
Method
status
(self)
tstarbot/scout/tasks/scout_task.py:30
next →
1–100 of 927, ranked by callers