Class TransportBranchMerger
The transport stage attaches the ships it generates to the force it generated them for. When rolls are accumulated into one command, each roll arrives with its own naval branch, so a vehicle company rolled on top of a Mek battalion lists its carrier under "Vehicle Company" rather than beside the battalion's DropShips, and it looks as though the carrier never came. This moves every roll's ships into a single branch under the command's top node: the first roll's branch is kept, and later rolls' ships are filed into its categories - WarShips, JumpShips, DropShips - by name, with a category created when the branch has none of that kind yet.
Ships keep their own nodes, so a carrier keeps the fighter complement nested under it. The flotillas each roll brought are kept as they were rather than re-dealt, so the branch reads as the ships each roll added.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidfoldInto(ForceDescriptor modelTop, ForceDescriptor roll) Folds the ships a roll brought into the command's naval branch, and keeps that branch at the top.
-
Method Details
-
foldInto
Folds the ships a roll brought into the command's naval branch, and keeps that branch at the top.- Parameters:
modelTop- the top node of the accumulated command; the roll is already merged beneath itroll- the roll just merged, whose own naval branch is to be folded in;nullis ignored
-