new AttackPlan()
- Source:
Classes
Members
Config
- Source:
PREPARATION_FAILED
- Source:
PREPARATION_KEEP_GOING
- Source:
PREPARATION_START
- Source:
SIEGE_ADDED
Siege added in build orders
- Source:
SIEGE_NOT_TESTED
- Source:
SIEGE_NO_TRAINER
- Source:
STATE_ARRIVED
- Source:
STATE_COMPLETING
- Source:
STATE_UNEXECUTED
- Source:
TYPE_DEFAULT
- Source:
TYPE_HUGE_ATTACK
- Source:
TYPE_RAID
- Source:
TYPE_RUSH
- Source:
[undefined]
- Source:
buildOrders
- Source:
canBuildUnits
- Source:
failed
- Source:
failed
- Source:
failed
- Source:
forced
- Source:
forced
- Source:
gameState
- Source:
isBlocked
- Source:
isBlocked
- Source:
isBlocked
- Source:
lastPosition
- Source:
lastPosition
- Source:
maxCompletingTime
- Source:
maxCompletingTime
- Source:
maxCompletingTime
- Source:
maxCompletingTime
- Source:
name
- Source:
neededShips
- Source:
neededShips
- Source:
neededShips
- Source:
neededShips
- Source:
neededShips
- Source:
overseas
- Source:
overseas
- Source:
overseas
- Source:
overseas
- Source:
overseas
- Source:
overseas
- Source:
overseas
- Source:
overseas
- Source:
overseas
- Source:
path
- Source:
paused
- Source:
paused
- Source:
position
- Source:
position
- Source:
position
- Source:
position
- Source:
position5TurnsAgo
- Source:
position5TurnsAgo
- Source:
queue
- Source:
queueChamp
- Source:
queueSiege
- Source:
rallyPoint
- Source:
rallyPoint
- Source:
rallyPoint
- Source:
rallyPoint
- Source:
rallyPoint
- Source:
rallyPoint
- Source:
rallyPoint
- Source:
rallyPoint
- Source:
sameLand
- Source:
siegeState
- Source:
siegeState
- Source:
siegeState
- Source:
startingAttack
- Source:
startingAttack
- Source:
state
- Source:
state
- Source:
state
- Source:
state
- Source:
state
- Source:
state
- Source:
state
- Source:
state
- Source:
state
- Source:
state
- Source:
state
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
target
- Source:
targetPlayer
- Source:
targetPlayer
- Source:
targetPlayer
- Source:
targetPlayer
- Source:
targetPlayer
- Source:
targetPlayer
- Source:
targetPlayer
- Source:
targetPlayer
- Source:
targetPlayer
- Source:
targetPos
- Source:
targetPos
- Source:
targetPos
- Source:
targetPos
- Source:
targetPos
- Source:
targetPos
- Source:
targetPos
- Source:
targetPos
- Source:
targetPos
- Source:
type
- Source:
uniqueTargetId
- Source:
unit
- Source:
unitCollUpdateArray
- Source:
unitCollection
- Source:
unitCollection
- Source:
unitStat
- Source:
unitStat[undefined]
- Source:
unit[undefined]
- Source:
unit[undefined]
- Source:
Methods
Abort()
reset any units
- Source:
Deserialize()
- Source:
Serialize()
- Source:
StartAttack()
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.
- Source:
UpdateTarget()
- Source:
UpdateTransporting()
- Source:
UpdateWalking()
- Source:
addBuildOrder()
Adds a build order. If resetQueue is true, this will reset the queue.
- Source:
addSiegeUnits()
- Source:
assignUnits()
- Source:
canStart()
Returns true if the attack can be executed at the current time
Basically it checks we have enough units.
- Source:
checkEvents()
- Source:
checkTargetObstruction()
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
- Source:
chooseTarget()
- Source:
debugAttack()
- Source:
defaultTargetFinder()
Default target finder aims for conquest critical targets
We must apply the *same* selection (isValidTarget) as done in getNearestTarget
- Source:
emptyQueues()
- Source:
forceStart()
- Source:
getAttackAccess()
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.
- Source:
getName()
- Source:
getNearestTarget()
sameLand true means that we look for a target for which we do not need to take a transport
- Source:
getPathToTarget()
- Source:
getType()
- Source:
hasForceOrder()
- Source:
hasSiegeUnits()
- Source:
init()
- Source:
isAvailableUnit()
- Source:
isPaused()
- Source:
isStarted()
- Source:
isValidTarget()
- Source:
mustStart()
- Source:
raidTargetFinder()
Raid target finder aims at destructing foundations from which our defenseManager has attacked the builders
- Source:
reassignFastUnit()
Reassign one (at each turn) FastMoving unit to fasten raid preparation.
- Source:
removeQueues()
- Source:
removeUnit()
- Source:
rushTargetFinder()
Rush target finder aims at isolated non-defended buildings
- Source:
setPaused()
- Source:
setRallyPoint()
Set rally point at the border of our territory
- Source:
trainMoreUnits()
- Source:
update()
Runs every turn after the attack is executed
- Source:
updatePreparation()
Three returns possible: 1 is "keep going", 0 is "failed plan", 2 is "start".
- Source:
waitingForTransport()
- Source: