new TransportPlan()
- Source:
Classes
Members
BOARDING
We're trying to board units onto our ships.
- Source:
ID
- Source:
SAILING
We're moving ships and eventually unload units.
- Source:
[undefined]
- Source:
boardingPos
- Source:
boardingPos[undefined]
- Source:
boardingPos[undefined]
- Source:
boardingPos[undefined]
- Source:
boardingPos[undefined]
- Source:
boardingPos[undefined]
- Source:
boardingPos[undefined]
- Source:
boardingPos[undefined]
- Source:
boardingPos[undefined]
- Source:
boardingRange
- Source:
canceled
- Source:
canceled
- Source:
debug
- Source:
endIndex
- Source:
endIndex
- Source:
endPos
- Source:
endPos
- Source:
failed
- Source:
failed
- Source:
failed
- Source:
flotilla
- Source:
nTry
- Source:
nTry
- Source:
nTry[undefined]
- Source:
nTry[undefined]
- Source:
nTry[undefined]
- Source:
nTry[undefined]
- Source:
nTry[undefined]
- Source:
nTry[undefined]
- Source:
needSplit
- Source:
needSplit
- Source:
needTransportShips
- Source:
needTransportShips
- Source:
needTransportShips
- Source:
recovered
- Source:
recovered
- Source:
sea
- Source:
sea
- Source:
ships
- Source:
startIndex
- Source:
state
- Source:
state
- Source:
transportShips
- Source:
units
- Source:
unloaded
- Source:
unloaded
- Source:
Methods
Deserialize()
- Source:
Serialize()
- Source:
addUnit()
add a unit to this plan
- Source:
assignShip()
- Source:
assignUnitToShip()
- Source:
cancelTransport()
TODO not currently used ... to be fixed
- Source:
countFreeSlots()
count available slots
- Source:
countFreeSlotsOnShip()
- Source:
getBoardingPos()
when avoidEnnemy is true, we try to not board/unboard in ennemy territory
- Source:
init()
- Source:
isOnBoard()
tell if a unit is garrisoned in one of the ships of this plan, and update its metadata if yes
- Source:
onBoarding()
- Source:
onSailing()
- Source:
releaseAll()
- Source:
releaseShip()
- Source:
removeUnit()
remove a unit from this plan, if not yet on board
- Source:
resetUnit()
- Source:
update()
Try to move on and then clear the plan.
- Source: