Class TexturePack

java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.renderer.TexturePack

public class TexturePack extends Object
This class is for holding all the images used in the game.
  • Method Details

    • getName

      public String getName()
      get name.
      Returns:
      String
    • getTitleFont

      public Font getTitleFont()
      get titleFont.
      Returns:
      font
    • getSubtitleFont

      public Font getSubtitleFont()
      get subtitleFont.
      Returns:
      font
    • getTextFont

      public Font getTextFont()
      get textFont.
      Returns:
      font
    • getColorDefault

      public Color getColorDefault()
      get colorDefault.
      Returns:
      color
    • getColorHover

      public Color getColorHover()
      get colorHover.
      Returns:
      color
    • getColorSelected

      public Color getColorSelected()
      get colorSelected.
      Returns:
      color
    • getImage

      public BufferedImage getImage(Tile tile)
      get image enum.
      Parameters:
      tile - the tile
      Returns:
      the BufferedImage of the tile
    • getImage

      public BufferedImage getImage(String imgName)
      get image from string.
      Parameters:
      imgName - the name of the image
      Returns:
      the BufferedImage of the image