Class ForceGeneratorViewUi
java.lang.Object
megamek.client.ui.dialogs.randomArmy.ForceGeneratorViewUi
- All Implemented Interfaces:
ActionListener,EventListener
Presents controls for selecting parameters of the force to generate and a tree structure showing the generated force.
The left and right sides of the view are made available separately for use by RandomArmyDialog.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddChosenUnits(String playerName, ClientGUI clientGui) Adds the chosen units to the gamevoidsetYear(int year)
-
Field Details
-
sorterChosen
-
mscInstance
-
-
Constructor Details
-
ForceGeneratorViewUi
-
-
Method Details
-
getLeftPanel
-
getRightPanel
-
setYear
public void setYear(int year) -
getChosenUnits
-
addChosenUnits
Adds the chosen units to the game -
getGenerationContext
- Returns:
- what the generated force was rolled for - faction, command, year and rating - or
nullwhen nothing has been generated yet
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-