Skip to content
DrInfy edited this page Sep 12, 2021 · 9 revisions

Managers available in knowledge are

unit_values

Contains improved data from units

unit_cache

Unit cache

action_handler

Handles and allows preventing duplicate actions especially when using real time.

zone_manager

Handles zone data and updates. Zones are areas where a townhall can be built and resources can be gathered.

enemy_units_manager,

Keeps track of enemy units.

cooldown_manager

Should probably be renamed to ability_manager, keeps track of what abilities are available for all units.

building_solver

Solves optimal building positions.

income_calculator

Keeps track of our income and attempts to estimate enemy income.

build_detector

Attempts to guess enemy build. If your bot detects a build, you can use step with a condition to formulate a counter.

Step(lambda k: k.build_detector.rush_build == EnemyRushBuild.RoachRush, your_counter_here)

enemy_army_predicter

Attempts to guess what units enemy might have, based on what they have now and how much income they have.

lost_units_manager

Keeps track of what units have been killed during the game.

game_analyzer

Analyzes the state of game and tries to guess which side has advantage.

chat_manager

Functions to make chatting easier during the game. Easy usage is to use a key and use a function or lambda to generate text message

await self.knowledge.chat_manager.chat_taunt_once("key", lambda: "my chat message")

previous_units_manager

Keeps track of units in previous frame. Needed by other managers.

data_manager

Allows writing data in order to optimize strategies in future games. You can announce your build to data_manager to have it automatically record your results

self.knowledge.data_manager.set_build(build_name)

memory_manager

Remembers the last known enemy positions.

Clone this wiki locally