Package megamek.client.ui.clientGUI
Class SBFClientGUI
java.lang.Object
megamek.client.ui.clientGUI.AbstractClientGUI
megamek.client.ui.clientGUI.SBFClientGUI
- All Implemented Interfaces:
ActionListener,EventListener,IClientGUI,IClientCommandHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Gamestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected JComponentprotected final CommonMenuBarFields inherited from class megamek.client.ui.clientGUI.AbstractClientGUI
boardViews, boardViewsContainer, clientCommands, CP, FILENAME_ICON_16X16, FILENAME_ICON_256X256, FILENAME_ICON_32X32, FILENAME_ICON_48X48, frame, GUIP, MAX_GUI_SCALE, MIN_GUI_SCALE, miniMaps, spriteHandlers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoiddie()Performs shut down for threads and sockets and other things that can be disposed.voidRegisters this ClientGUI as a listener wherever it's needed.protected voidInitializes a number of things about this frame.protected booleansaveGame()voidselectForAction(SBFFormation formation) voidsetChatBoxActive(boolean active) voidshowMovementEnvelope(SBFFormation formation, Map<Coords, Integer> mvEnvData) Shows the movement envelope in the BoardView for the given entity.voidshowMovePath(SBFMovePath movePath) protected voidswitchPanel(GamePhase phase) protected voidMethods inherited from class megamek.client.ui.clientGUI.AbstractClientGUI
boardViews, getAllCommandNames, getBoardView, getBoardView, getBoardView, getCommand, getCurrentBoardView, getFrame, handleExit, registerCommand, runCommand, runCommand, shouldIgnoreHotKeys, showBoardView, showScriptedMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.client.ui.clientGUI.IClientGUI
isChatBoxActive
-
Field Details
-
CG_BOARD_VIEW
- See Also:
-
CG_CHAT_LOUNGE
- See Also:
-
CG_STARTING_SCENARIO
- See Also:
-
CG_EXCHANGE
- See Also:
-
CG_SELECT_ARTY_AUTO_HIT_HEX_DISPLAY
- See Also:
-
CG_DEPLOY_MINEFIELD_DISPLAY
- See Also:
-
CG_DEPLOYMENT_DISPLAY
- See Also:
-
CG_TARGETING_PHASE_DISPLAY
- See Also:
-
CG_PREMOVEMENT_DISPLAY
- See Also:
-
CG_MOVEMENT_DISPLAY
- See Also:
-
CG_OFFBOARD_DISPLAY
- See Also:
-
CG_PRE_FIRING
- See Also:
-
CG_FIRING_DISPLAY
- See Also:
-
CG_POINTBLANK_SHOT_DISPLAY
- See Also:
-
CG_PHYSICAL_DISPLAY
- See Also:
-
CG_REPORT_DISPLAY
- See Also:
-
CG_DEFAULT
- See Also:
-
curPanel
-
bvGame
-
-
Constructor Details
-
SBFClientGUI
-
-
Method Details
-
initializeFrame
protected void initializeFrame()Initializes a number of things about this frame.- Overrides:
initializeFramein classAbstractClientGUI
-
initialize
public void initialize()Description copied from interface:IClientGUIRegisters this ClientGUI as a listener wherever it's needed. It is generally considered bad practice to do this in the constructor.- Specified by:
initializein interfaceIClientGUI- Overrides:
initializein classAbstractClientGUI
-
getClient
- Specified by:
getClientin interfaceIClientGUI
-
turnTimerComponent
- Specified by:
turnTimerComponentin interfaceIClientGUI
-
setChatBoxActive
public void setChatBoxActive(boolean active) - Specified by:
setChatBoxActivein interfaceIClientGUI
-
clearChatBox
public void clearChatBox()- Specified by:
clearChatBoxin interfaceIClientGUI
-
saveGame
protected boolean saveGame()- Specified by:
saveGamein classAbstractClientGUI
-
die
public void die()Description copied from interface:IClientGUIPerforms shut down for threads and sockets and other things that can be disposed.- Specified by:
diein interfaceIClientGUI- Overrides:
diein classAbstractClientGUI
-
switchPanel
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
updateFormationSprites
protected void updateFormationSprites() -
selectForAction
-
showMovementEnvelope
Shows the movement envelope in the BoardView for the given entity. The movement envelope data is a map of move end Coords to movement points used.- Parameters:
formation- The entity for which the movement envelope ismvEnvData- The movement envelope data
-
clearMovementEnvelope
public void clearMovementEnvelope() -
showMovePath
-