-
David Bergström authoredDavid Bergström authored
Perception
There are several classes related to processing information about the game state and the input from Starcraft. All these classes are taken more or less directly from the original `CommandCenter`_, but we have left all decision-making to the user of the API.
-.. _CommandCenter: https://github.com/davechurchill/commandcenter
Here is a full list of all managers:
- :class:`library.BaseLocationManager`
- :class:`library.TechTree`
- :class:`library.MapTools`
- :class:`library.BuildingPlacer`
The rest of this page contains a brief description of each manager.
BaseLocationManager
BaseLocation
Closely related to BaseLocationManager. This is the datastructure used by the BaseLocationManager to keep track of all base locations and related information.
TechTree
This class contains all information about units and what is required to build a certain unit and what builds it. It only has one method, which is used to look-up unit types properties:
This class has some invalid information by default, this can be corrected by placing the file techtree.json in the working directory. The techtree.json files are available here, select the lastest version. A recent file is included in the template repository.