10. Room reading¶
To get a readable map for the bot this feature will be used. It will convert the map of the requested room to a more readable format.
The following features will be included: - Terrain return - Terrain filter - Analyse map - Get weak spots - Get structures in range - Get best spots - Get dangerous structures
10.1. Function list¶
Name |
Description |
|---|---|
a |
b |
10.2. How is it going to work?¶
10.2.1. Terrain returned¶
Get room terrain
10.2.2. Terrain filter¶
Filter terrain types or range on Terrain return
10.2.3. Analyse map¶
Analyse map and use the functions below to get requested output.
10.2.3.1. Get weak spots¶
The same analyzing to get best spots for defense structures will be used too here but then inverted to get the weak spots.
Like hit points and structures needed to kill to get inside the base.
10.2.3.2. Get structures in range¶
Return all structures in specified range, filter on type and function is possible.
10.2.3.3. Get best spot¶
Based on what’s needed the best spots in a range will be gathered and the best spot in the list will be returned.
10.2.3.4. Get dangerous structures¶
To optimize attacking the most dangerous structures for creeps will be gathered and focussed on to destroy first.