Class GUIBattleChit

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GUIBattleChit extends Chit
See Also:
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • battleUnit

      private final BattleUnit battleUnit
    • font

      private static Font font
    • oldFont

      private static Font oldFont
    • fontHeight

      private static int fontHeight
    • hits

      private int hits
    • color

      private final Color color
    • borderStroke

      private static BasicStroke borderStroke
    • midRect

      private Rectangle midRect
    • outerRect

      private Rectangle outerRect
    • strikeNumber

      private int strikeNumber
    • numDice

      private int numDice
    • strikeDie

      private StrikeDie strikeDie
    • strikeAdjDie

      private StrikeDie strikeAdjDie
    • scale

      private final int scale
    • borderRatio

      private static final int borderRatio
      See Also:
    • useColoredBorders

      private static boolean useColoredBorders
  • Constructor Details

  • Method Details

    • getCreatureName

      public String getCreatureName()
    • getDescription

      public String getDescription()
    • toString

      public String toString()
      Overrides:
      toString in class Chit
    • getTag

      public int getTag()
    • getBattleUnit

      public BattleUnit getBattleUnit()
    • updateAndRepaint

      public void updateAndRepaint()
    • setDead

      public void setDead(boolean dead)
      Overrides:
      setDead in class Chit
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class Chit
    • setLocation

      public void setLocation(Point point)
      Overrides:
      setLocation in class Chit
    • contains

      public boolean contains(Point point)
      Overrides:
      contains in class Component
    • getBounds

      public Rectangle getBounds()
      Overrides:
      getBounds in class Chit
    • setBounds

      public void setBounds(Rectangle outerRect)
      Overrides:
      setBounds in class Component
    • setStrikeNumber

      public void setStrikeNumber(int strikeNumber)
    • setStrikeDice

      public void setStrikeDice(int numDice)
    • setUseColoredBorders

      protected static void setUseColoredBorders(boolean bval)