Members
(static) BOARDING
We're trying to board units onto our ships.
- Source:
(static) SAILING
We're moving ships and eventually unload units.
- Source:
Methods
addUnit()
add a unit to this plan
- Source:
cancelTransport()
TODO not currently used ... to be fixed
- Source:
countFreeSlots()
count available slots
- Source:
getBoardingPos()
when avoidEnnemy is true, we try to not board/unboard in ennemy territory
- Source:
isOnBoard()
tell if a unit is garrisoned in one of the ships of this plan, and update its metadata if yes
- Source:
removeUnit()
remove a unit from this plan, if not yet on board
- Source:
update()
Try to move on and then clear the plan.
- Source: