Positions:
upgrader
creep next to thecontroller
storage
structure next to theupgrader
filler
creep next to thestorage
pathStart
position next to thestorage
From pathStart
all (sources, controller, mineral, mid of each exit) paths
are calculated and saved. The longest path is used to place structures (spawn,
extension, lab, observer, terminal, tower) next to it. Next to filler
a link,
tower and power_spawn is located. Link
s are placed next to the sources and at
the paths to the exits. Layers of walls are placed at the exits, positions
within the precalculated paths are replaced by ramparts.
Paths are precalculated and cached and reused by most of the creeps.
Swamps are ignored because roads will be built automatically over time.
The creeps only move on the precalculated paths (to reduce complexity). Instead, blockers are recognized and structurer
are sent to destroy the structure, carry
creeps try it as well.