IDABot¶
-
class
library.
IDABot
¶ This is the basis of your bot. It contains all available managers and some methods to get you started.
See this page for how to properly inherit from IDABot.
Instances of managers:
-
IDABot.
base_location_manager
¶ An instance of the class
library.BaseLocationManager
-
IDABot.
tech_tree
¶ An instance of the class
library.TechTree
-
IDABot.
map_tools
¶ An instance of the class
library.MapTools
-
IDABot.
building_placer
¶ An instance of the class
library.BuildingPlacer
Inherited methods:
-
IDABot.
on_game_start
(self)¶ This method when Starcraft has stared, when you inherit it you have to call the parent’s on_game_start method in order to make it work (see Getting started).
-
IDABot.
on_step
(self)¶ This method is run on every tick of the game, when you inherit it you have to call the parent’s on_step method in order to make it work (see Getting started).
Methods:
-
IDABot.
get_all_units
(self) → List[library.Unit]¶ Retrieves a list of all visible units
-
IDABot.
get_my_units
(self) → List[library.Unit]¶ Retrieves a list of all your visible units
-
IDABot.
get_player_race
(self) → library.Race¶ Returns the players race, useful if you play Race.Random
Attributes:
-
IDABot.
minerals
¶ How much minerals we currently have
-
IDABot.
gas
¶ How much gas we currently have
-
IDABot.
current_supply
¶ How much supply we are currently using
-
IDABot.
max_supply
¶ How much supply we can currently use
-
IDABot.
current_frame
¶ Which frame we are currently on
-