Class BotFormationsMenuBuilder
java.lang.Object
megamek.client.ui.dialogs.BotCommands.BotFormationsMenuBuilder
Builds the lobby's formation menu for a bot lance, so the lance starts the game in formation. In game, formations
are set in the Move Order editor.
Every member carries the formation in its own orders, with its slot: the leader is slot 0 and the others follow in the lance's order.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JMenulobbyFormationMenu(AbstractClient client, Force lance, List<Integer> unitIds) The lobby's Formation menu for one bot lance, so a lance can start the game already in formation: one item per shape, spacingFormationOrder.DEFAULT_SPACING, the lance's first unit leading, Walk pace, Break on contact and keeping together, plus Formation off.static JMenulobbyRoleMenu(AbstractClient client, JFrame frame, Game game, Player owner, Force lance, List<Integer> unitIds) The lobby's Role menu for one bot lance, beside Formation: None, Convoy...
-
Method Details
-
lobbyFormationMenu
The lobby's Formation menu for one bot lance, so a lance can start the game already in formation: one item per shape, spacingFormationOrder.DEFAULT_SPACING, the lance's first unit leading, Walk pace, Break on contact and keeping together, plus Formation off. The rest can be changed in game from the Move Order editor.- Parameters:
client- the client that sends the orderslance- the lanceunitIds- the lance's units, in lance order- Returns:
- the menu
-
lobbyRoleMenu
public static JMenu lobbyRoleMenu(AbstractClient client, JFrame frame, Game game, Player owner, Force lance, List<Integer> unitIds) The lobby's Role menu for one bot lance, beside Formation: None, Convoy... or Escort..., the last two opening the Role dialog on that choice. Roles are set in the lobby so a convoy and its escorts start the game knowing their jobs (HammerGS, 2026-10-02).- Parameters:
client- the client that sends the ordersframe- the owner of the Role dialoggame- the gameowner- the bot that owns the lancelance- the lanceunitIds- the lance's units- Returns:
- the menu
-