Siege added in build orders
reset any units
Adds a build order. If resetQueue is true, this will reset the queue.
Returns true if the attack can be executed at the current time Basically it checks we have enough units.
Check that we can have a path to this target otherwise we may be blocked by walls and try to react accordingly This is done only when attacker and target are on the same land
Default target finder aims for conquest critical targets We must apply the *same* selection (isValidTarget) as done in getNearestTarget
The center position of this attack may be in an inaccessible area. So we use the access of the unit nearest to this center position.
sameLand true means that we look for a target for which we do not need to take a transport
Raid target finder aims at destructing foundations from which our defenseManager has attacked the builders
Reassign one (at each turn) FastMoving unit to fasten raid preparation.
Rush target finder aims at isolated non-defended buildings
Set rally point at the border of our territory
Executes the attack plan, after this is executed the update function will be run every turn If we're here, it's because we have enough units.
Runs every turn after the attack is executed
Three returns possible: 1 is "keep going", 0 is "failed plan", 2 is "start".