python-sc2
Introduction
Using docker to run SC2 bots
bot_ai.py
unit.py
units.py
game_data.py
game_info.py
game_state.py
client.py
position.py
pixel_map.py
protocol.py
score.py
unit_command.py
ids
python-sc2
Index
Index
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
L
|
M
|
N
|
O
|
P
|
Q
|
R
|
S
|
T
|
U
|
V
|
W
A
AbilityData (class in sc2.game_data)
AbilityId (class in sc2.ids.ability_id)
action_errors (sc2.game_state.GameState property)
actions (sc2.game_state.GameState property)
actions_toggle_autocast (sc2.game_state.GameState property)
actions_unit_commands (sc2.game_state.GameState property)
add_on_land_position (sc2.unit.Unit property)
add_on_position (sc2.unit.Unit property)
add_on_tag (sc2.unit.Unit property)
age (sc2.unit.Unit property)
age_in_frames (sc2.unit.Unit property)
air_dps (sc2.unit.Unit property)
air_range (sc2.unit.Unit property)
alert() (sc2.bot_ai.BotAI method)
alerts (sc2.game_state.GameState property)
alliance (sc2.unit.Unit property)
already_pending() (sc2.bot_ai.BotAI method)
already_pending_upgrade() (sc2.bot_ai.BotAI method)
armor (sc2.unit.Unit property)
armor_upgrade_level (sc2.unit.Unit property)
as_PointI (sc2.position.Point2 property)
assigned_harvesters (sc2.unit.Unit property)
attack() (sc2.unit.Unit method)
attack_upgrade_level (sc2.unit.Unit property)
B
barracks_can_fit_addon (sc2.game_info.Ramp property)
barracks_correct_placement (sc2.game_info.Ramp property)
barracks_in_middle (sc2.game_info.Ramp property)
Blip (class in sc2.game_state)
bonus_damage (sc2.unit.Unit property)
BotAI (class in sc2.bot_ai)
BotAIInternal (class in sc2.bot_ai_internal)
buff_duration_max (sc2.unit.Unit property)
buff_duration_remain (sc2.unit.Unit property)
BuffId (class in sc2.ids.buff_id)
buffs (sc2.unit.Unit property)
build() (sc2.bot_ai.BotAI method)
(sc2.unit.Unit method)
build_gas() (sc2.unit.Unit method)
build_progress (sc2.unit.Unit property)
button_name (sc2.game_data.AbilityData property)
by_tag() (sc2.units.Units method)
C
calculate_cost() (sc2.bot_ai.BotAI method)
calculate_damage_vs_target() (sc2.unit.Unit method)
calculate_dps_vs_target() (sc2.unit.Unit method)
calculate_speed() (sc2.unit.Unit method)
calculate_supply_cost() (sc2.bot_ai.BotAI method)
calculate_unit_value() (sc2.bot_ai.BotAI method)
can_afford() (sc2.bot_ai.BotAI method)
can_attack (sc2.unit.Unit property)
can_attack_air (sc2.unit.Unit property)
can_attack_both (sc2.unit.Unit property)
can_attack_ground (sc2.unit.Unit property)
can_be_attacked (sc2.unit.Unit property)
can_cast() (sc2.bot_ai.BotAI method)
can_feed() (sc2.bot_ai.BotAI method)
can_place() (sc2.bot_ai.BotAI method)
can_place_single() (sc2.bot_ai.BotAI method)
cargo_left (sc2.unit.Unit property)
cargo_max (sc2.unit.Unit property)
cargo_size (sc2.game_data.UnitTypeData property)
(sc2.unit.Unit property)
cargo_used (sc2.unit.Unit property)
center (sc2.units.Units property)
center() (sc2.position.Point2 static method)
chat (sc2.game_state.GameState property)
chat_send() (sc2.bot_ai.BotAI method)
(sc2.client.Client method)
circle_intersection() (sc2.position.Point2 method)
Client (class in sc2.client)
cloak (sc2.unit.Unit property)
closer_than() (sc2.units.Units method)
closest() (sc2.position.Pointlike method)
closest_distance_to() (sc2.units.Units method)
closest_n_units() (sc2.units.Units method)
closest_to() (sc2.units.Units method)
collecting (sc2.units.Units property)
Common (class in sc2.game_state)
convert_tuple_to_numpy_array() (sc2.bot_ai_internal.BotAIInternal static method)
copy() (sc2.units.Units method)
corner_depots (sc2.game_info.Ramp property)
Cost (class in sc2.game_data)
cost_zerg_corrected (sc2.game_data.UnitTypeData property)
D
dead_units (sc2.game_state.GameState property)
debug_all_resources() (sc2.client.Client method)
debug_box2_out() (sc2.client.Client method)
debug_box_out() (sc2.client.Client method)
debug_control_enemy() (sc2.client.Client method)
debug_cooldown() (sc2.client.Client method)
debug_create_unit() (sc2.client.Client method)
debug_fast_build() (sc2.client.Client method)
debug_food() (sc2.client.Client method)
debug_free() (sc2.client.Client method)
debug_gas() (sc2.client.Client method)
debug_god() (sc2.client.Client method)
debug_hang() (sc2.client.Client method)
debug_kill_unit() (sc2.client.Client method)
debug_line_out() (sc2.client.Client method)
debug_minerals() (sc2.client.Client method)
debug_set_unit_value() (sc2.client.Client method)
debug_show_map() (sc2.client.Client method)
debug_sphere_out() (sc2.client.Client method)
debug_tech_tree() (sc2.client.Client method)
debug_text_screen() (sc2.client.Client method)
debug_text_simple() (sc2.client.Client method)
debug_text_world() (sc2.client.Client method)
debug_upgrade() (sc2.client.Client method)
depot_in_middle (sc2.game_info.Ramp property)
detect_range (sc2.unit.Unit property)
direction_vector() (sc2.position.Point2 method)
distance_per_step (sc2.unit.Unit property)
distance_to() (sc2.position.Pointlike method)
(sc2.unit.Unit method)
distance_to_closest() (sc2.position.Pointlike method)
distance_to_furthest() (sc2.position.Pointlike method)
distance_to_point2() (sc2.position.Pointlike method)
distance_to_squared() (sc2.unit.Unit method)
distance_to_weapon_ready (sc2.unit.Unit property)
distribute_workers() (sc2.bot_ai.BotAI method)
do() (sc2.bot_ai_internal.BotAIInternal method)
dump_data() (sc2.client.Client method)
E
EffectData (class in sc2.game_state)
EffectId (class in sc2.ids.effect_id)
effects (sc2.game_state.GameState attribute)
enemy (sc2.units.Units property)
enemy_start_locations (sc2.bot_ai.BotAI property)
energy (sc2.unit.Unit property)
energy_max (sc2.unit.Unit property)
energy_percentage (sc2.unit.Unit property)
exact_id (sc2.game_data.AbilityData property)
exclude_type() (sc2.units.Units method)
expand_now() (sc2.bot_ai.BotAI method)
F
facing (sc2.unit.Unit property)
filter() (sc2.units.Units method)
find_by_tag() (sc2.units.Units method)
find_placement() (sc2.bot_ai.BotAI method)
flying (sc2.units.Units property)
footprint_radius (sc2.game_data.UnitTypeData property)
(sc2.unit.Unit property)
friendly_name (sc2.game_data.AbilityData property)
from_proto() (sc2.position.Point2 class method)
(sc2.position.Point3 class method)
(sc2.position.Rect class method)
further_than() (sc2.units.Units method)
furthest() (sc2.position.Pointlike method)
furthest_distance_to() (sc2.units.Units method)
furthest_n_units() (sc2.units.Units method)
furthest_to() (sc2.units.Units method)
G
GameData (class in sc2.game_data)
GameInfo (class in sc2.game_info)
GameState (class in sc2.game_state)
gather() (sc2.unit.Unit method)
gathering (sc2.units.Units property)
get_available_abilities() (sc2.bot_ai.BotAI method)
get_next_expansion() (sc2.bot_ai.BotAI method)
get_terrain_height() (sc2.bot_ai.BotAI method)
get_terrain_z_height() (sc2.bot_ai.BotAI method)
ground_dps (sc2.unit.Unit property)
ground_range (sc2.unit.Unit property)
H
has_add_on (sc2.unit.Unit property)
has_buff() (sc2.unit.Unit method)
has_cargo (sc2.unit.Unit property)
has_creep() (sc2.bot_ai.BotAI method)
has_reactor (sc2.unit.Unit property)
has_techlab (sc2.unit.Unit property)
has_vespene (sc2.unit.Unit property)
health (sc2.unit.Unit property)
health_max (sc2.unit.Unit property)
health_percentage (sc2.unit.Unit property)
hold_position() (sc2.unit.Unit method)
I
id (sc2.game_data.AbilityData property)
ideal_harvesters (sc2.unit.Unit property)
idle (sc2.units.Units property)
in_ability_cast_range() (sc2.unit.Unit method)
in_attack_range_of() (sc2.units.Units method)
in_closest_distance_to_group() (sc2.units.Units method)
in_distance_between() (sc2.units.Units method)
in_distance_of_group() (sc2.units.Units method)
in_map_bounds() (sc2.bot_ai.BotAI method)
in_pathing_grid() (sc2.bot_ai.BotAI method)
in_placement_grid() (sc2.bot_ai.BotAI method)
is_active (sc2.unit.Unit property)
is_armored (sc2.unit.Unit property)
is_attacking (sc2.unit.Unit property)
is_biological (sc2.unit.Unit property)
is_blip (sc2.game_state.Blip property)
(sc2.unit.Unit property)
is_burrowed (sc2.unit.Unit property)
is_carrying_minerals (sc2.unit.Unit property)
is_carrying_resource (sc2.unit.Unit property)
is_carrying_vespene (sc2.unit.Unit property)
is_cloaked (sc2.unit.Unit property)
is_collecting (sc2.unit.Unit property)
is_constructing_scv (sc2.unit.Unit property)
is_detector (sc2.unit.Unit property)
is_enemy (sc2.game_state.EffectData property)
(sc2.unit.Unit property)
is_facing() (sc2.unit.Unit method)
is_flying (sc2.unit.Unit property)
is_gathering (sc2.unit.Unit property)
is_hallucination (sc2.unit.Unit property)
is_idle (sc2.unit.Unit property)
is_light (sc2.unit.Unit property)
is_massive (sc2.unit.Unit property)
is_mechanical (sc2.unit.Unit property)
is_memory (sc2.unit.Unit property)
is_mine (sc2.game_state.EffectData property)
(sc2.unit.Unit property)
is_mineral_field (sc2.unit.Unit property)
is_moving (sc2.unit.Unit property)
is_on_screen (sc2.unit.Unit property)
is_patrolling (sc2.unit.Unit property)
is_placeholder (sc2.unit.Unit property)
is_powered (sc2.unit.Unit property)
is_psionic (sc2.unit.Unit property)
is_ready (sc2.unit.Unit property)
is_repairing (sc2.unit.Unit property)
is_returning (sc2.unit.Unit property)
is_revealed (sc2.unit.Unit property)
is_selected (sc2.unit.Unit property)
is_snapshot (sc2.unit.Unit property)
is_structure (sc2.unit.Unit property)
is_transforming (sc2.unit.Unit property)
is_using_ability() (sc2.unit.Unit method)
is_vespene_geyser (sc2.unit.Unit property)
is_visible (sc2.unit.Unit property)
is_visible() (sc2.bot_ai.BotAI method)
issue_events() (sc2.bot_ai_internal.BotAIInternal method)
L
leave() (sc2.client.Client method)
length (sc2.position.Point2 property)
link_name (sc2.game_data.AbilityData property)
M
main_base_ramp (sc2.bot_ai.BotAI property)
manhattan_distance() (sc2.position.Point2 method)
mineral_contents (sc2.unit.Unit property)
mineral_field (sc2.units.Units property)
morph_cost (sc2.game_data.UnitTypeData property)
move() (sc2.unit.Unit method)
move_camera() (sc2.client.Client method)
move_camera_spatial() (sc2.client.Client method)
movement_speed (sc2.unit.Unit property)
N
n_closest_to_distance() (sc2.units.Units method)
n_furthest_to_distance() (sc2.units.Units method)
name (sc2.unit.Unit property)
normalized (sc2.position.Point2 property)
not_flying (sc2.units.Units property)
not_ready (sc2.units.Units property)
not_structure (sc2.units.Units property)
O
obs_move_camera() (sc2.client.Client method)
of_type() (sc2.units.Units method)
offset() (sc2.position.Point2 method)
(sc2.position.Pointlike method)
on_before_start() (sc2.bot_ai.BotAI method)
on_building_construction_complete() (sc2.bot_ai.BotAI method)
on_building_construction_started() (sc2.bot_ai.BotAI method)
on_end() (sc2.bot_ai.BotAI method)
on_enemy_unit_entered_vision() (sc2.bot_ai.BotAI method)
on_enemy_unit_left_vision() (sc2.bot_ai.BotAI method)
on_start() (sc2.bot_ai.BotAI method)
on_step() (sc2.bot_ai.BotAI method)
on_unit_created() (sc2.bot_ai.BotAI method)
on_unit_destroyed() (sc2.bot_ai.BotAI method)
on_unit_took_damage() (sc2.bot_ai.BotAI method)
on_unit_type_changed() (sc2.bot_ai.BotAI method)
on_upgrade_complete() (sc2.bot_ai.BotAI method)
order_target (sc2.unit.Unit property)
orders (sc2.unit.Unit property)
owned (sc2.units.Units property)
owner_id (sc2.unit.Unit property)
P
passengers (sc2.unit.Unit property)
passengers_tags (sc2.unit.Unit property)
patrol() (sc2.unit.Unit method)
PixelMap (class in sc2.pixel_map)
Point2 (class in sc2.position)
Point3 (class in sc2.position)
Pointlike (class in sc2.position)
position (sc2.game_state.Blip property)
(sc2.unit.Unit property)
position3d (sc2.game_state.Blip property)
(sc2.unit.Unit property)
position_tuple (sc2.unit.Unit property)
prefer_idle (sc2.units.Units property)
prevent_double_actions() (sc2.bot_ai_internal.BotAIInternal static method)
Protocol (class in sc2.protocol)
protoss_wall_buildings (sc2.game_info.Ramp property)
protoss_wall_pylon (sc2.game_info.Ramp property)
protoss_wall_warpin (sc2.game_info.Ramp property)
Q
query_available_abilities() (sc2.client.Client method)
query_available_abilities_with_tag() (sc2.client.Client method)
query_building_placement() (sc2.client.Client method)
query_pathing() (sc2.client.Client method)
query_pathings() (sc2.client.Client method)
quick_load() (sc2.client.Client method)
quick_save() (sc2.client.Client method)
R
race (sc2.unit.Unit property)
radius (sc2.unit.Unit property)
rally_targets (sc2.unit.Unit property)
Ramp (class in sc2.game_info)
random_group_of() (sc2.units.Units method)
ready (sc2.units.Units property)
real_speed (sc2.unit.Unit property)
Rect (class in sc2.position)
repair() (sc2.unit.Unit method)
research() (sc2.bot_ai.BotAI method)
(sc2.unit.Unit method)
return_resource() (sc2.unit.Unit method)
returning (sc2.units.Units property)
right (sc2.position.Rect property)
round() (sc2.position.Point2 method)
S
same_tech() (sc2.units.Units method)
same_unit() (sc2.units.Units method)
ScoreDetails (class in sc2.score)
select_build_worker() (sc2.bot_ai.BotAI method)
selected (sc2.units.Units property)
shield (sc2.unit.Unit property)
shield_health_percentage (sc2.unit.Unit property)
shield_max (sc2.unit.Unit property)
shield_percentage (sc2.unit.Unit property)
shield_upgrade_level (sc2.unit.Unit property)
sight_range (sc2.unit.Unit property)
Size (class in sc2.position)
smart() (sc2.unit.Unit method)
sort_by_distance() (sc2.position.Pointlike method)
sorted_by_distance_to() (sc2.units.Units method)
start_location (sc2.bot_ai.BotAI property)
step() (sc2.client.Client method)
step_time (sc2.bot_ai.BotAI property)
stop() (sc2.unit.Unit method)
structure (sc2.units.Units property)
structure_type_build_progress() (sc2.bot_ai.BotAI method)
subgroup() (sc2.units.Units method)
summary (sc2.score.ScoreDetails property)
surplus_harvesters (sc2.unit.Unit property)
synchronous_do() (sc2.bot_ai_internal.BotAIInternal method)
T
tag (sc2.unit.Unit property)
tags (sc2.units.Units property)
tags_in() (sc2.units.Units method)
tags_not_in() (sc2.units.Units method)
take() (sc2.units.Units method)
target_in_range() (sc2.unit.Unit method)
tech_alias (sc2.game_data.UnitTypeData property)
(sc2.unit.Unit property)
tech_requirement (sc2.game_data.UnitTypeData property)
tech_requirement_progress() (sc2.bot_ai.BotAI method)
time (sc2.bot_ai.BotAI property)
time_formatted (sc2.bot_ai.BotAI property)
toggle_autocast() (sc2.client.Client method)
top (sc2.position.Rect property)
towards() (sc2.position.Pointlike method)
train() (sc2.bot_ai.BotAI method)
(sc2.unit.Unit method)
type_id (sc2.unit.Unit property)
U
Unit (class in sc2.unit)
unit_alias (sc2.game_data.UnitTypeData property)
(sc2.unit.Unit property)
unit_axes_towards() (sc2.position.Pointlike method)
UnitCommand (class in sc2.unit_command)
Units (class in sc2.units)
units_created (sc2.bot_ai.BotAI property)
UnitTypeData (class in sc2.game_data)
UnitTypeId (class in sc2.ids.unit_typeid)
UpgradeData (class in sc2.game_data)
UpgradeId (class in sc2.ids.upgrade_id)
upper (sc2.game_info.Ramp property)
upper2_for_ramp_wall (sc2.game_info.Ramp property)
V
vespene_contents (sc2.unit.Unit property)
vespene_geyser (sc2.units.Units property)
visible (sc2.units.Units property)
W
warp_in() (sc2.unit.Unit method)
weapon_cooldown (sc2.unit.Unit property)
weapon_ready (sc2.unit.Unit property)
worker_en_route_to_build() (sc2.bot_ai.BotAI method)