Class CollapseWarning
java.lang.Object
megamek.client.ui.clientGUI.boardview.CollapseWarning
Construction Factor Warning Logic. Handles events, help methods and logic related to CF Warning in a way that can be
 unit tested and encapsulated from BoardView and ClientGUI and other actors.
- 
Method SummaryModifier and TypeMethodDescriptionstatic doublecalculateTotalTonnage(Game g, Entity selected, Coords c) static booleanentityTypeIsInWhiteList(Entity entity) static List<BoardLocation>findCFWarningsDeployment(Game game, Entity entity) findCFWarningsDeployment(Game game, Entity entity, Board board) Looks for all building locations in a legal deploy zone that would collapse if the currently selected entity would deploy there.static List<BoardLocation>findCFWarningsMovement(Game game, Entity entity) findCFWarningsMovement(Game game, Entity entity, Board board) For the provided entity, find all hexes within movement range with buildings that would collapse if entered or landed upon.static voidstatic booleanstatic booleanshouldShow(GamePhase gp, boolean isEnabled) 
- 
Method Details- 
handleActionPerformedpublic static void handleActionPerformed()
- 
isCFWarningPhase
- 
shouldShow
- 
findCFWarningsMovement
- 
findCFWarningsMovementFor the provided entity, find all hexes within movement range with buildings that would collapse if entered or landed upon. This is used by theMovementDisplayclass.
- 
entityTypeIsInWhiteList
- 
findCFWarningsDeployment
- 
findCFWarningsDeploymentLooks for all building locations in a legal deploy zone that would collapse if the currently selected entity would deploy there. This is used byDeploymentDisplayto render a warning sprite on danger hexes.
- 
calculateTotalTonnage
 
-