Class FPanelMiniMapContainer.FButtonEndTurn

All Implemented Interfaces:
MouseListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, SwingConstants
Enclosing class:
FPanelMiniMapContainer

class FPanelMiniMapContainer.FButtonEndTurn extends FButton
FButton to end turn.
This button is green when player still have action to do otherwise red.
Author:
Hydrolien
  • Field Details

  • Constructor Details

    • FButtonEndTurn

      public FButtonEndTurn()
      Main constructor.
  • Method Details

    • setAllActionDone

      public void setAllActionDone(boolean b)
      change color of the button depending of player's actions left.
      Green if player still have action to do otherwise red.
      If animations are enabled it will take 0,255 s to turn red.
    • setEnabled

      public void setEnabled(boolean b)
      setEnabled that also hide button if disable.
      Overrides:
      setEnabled in class FButton
    • paintComponent

      public void paintComponent(Graphics gTemp)
      Draw function for the FButton.
      Overrides:
      paintComponent in class FButton