Class ReportDisplay

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, BoardViewListener, KeyBindReceiver, GameListener, IPreferenceChangeListener, Distractable

public class ReportDisplay extends StatusBarPhaseDisplay
See Also:
  • Constructor Details

    • ReportDisplay

      public ReportDisplay(ClientGUI clientGUI)
      Creates and lays out a new movement phase display for the specified clientGUI.getClient().
  • Method Details

    • setButtons

      protected void setButtons()
      Description copied from class: StatusBarPhaseDisplay
      set button that should be displayed.
      Specified by:
      setButtons in class StatusBarPhaseDisplay
    • setButtonsTooltips

      protected void setButtonsTooltips()
      Description copied from class: StatusBarPhaseDisplay
      set button tool tips that should be displayed.
      Specified by:
      setButtonsTooltips in class StatusBarPhaseDisplay
    • getButtonList

      protected ArrayList<MegaMekButton> getButtonList()
      Description copied from class: StatusBarPhaseDisplay
      Returns the list of buttons that should be displayed.
      Specified by:
      getButtonList in class StatusBarPhaseDisplay
    • clear

      public void clear()
      Clears all current actions
      Specified by:
      clear in class StatusBarPhaseDisplay
    • ready

      public void ready()
      Description copied from class: AbstractPhaseDisplay
      Tells the display to finish the current player turn and send all planned actions to the server. Planned actions are e.g. movement, attacks or deployment. Usually, the planned actions are all actions that, together, make up a single unit's turn, e.g. all weapon attacks of one unit.
      Specified by:
      ready in class AbstractPhaseDisplay
    • setReportEnabled

      public void setReportEnabled(boolean enabled)
    • setPlayerListEnabled

      public void setPlayerListEnabled(boolean enabled)
    • setRerollInitiativeEnabled

      public void setRerollInitiativeEnabled(boolean enabled)
    • resetRerollInitiativeEnabled

      public void resetRerollInitiativeEnabled()
    • setDoneEnabled

      public void setDoneEnabled(boolean enabled)
    • rerollInitiative

      public void rerollInitiative()
      Requests an initiative reroll and disables the ready button.
    • actionPerformed

      public void actionPerformed(ActionEvent ev)
    • gamePhaseChange

      public void gamePhaseChange(GamePhaseChangeEvent e)
      Specified by:
      gamePhaseChange in interface GameListener
      Overrides:
      gamePhaseChange in class AbstractPhaseDisplay
    • removeAllListeners

      public void removeAllListeners()
      Description copied from interface: Distractable
      Stop just ignoring events and actually stop listening to them.