Class TexturePack
java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.renderer.TexturePack
This class is for holding all the images used in the game.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enum is for holding all the images used in the game. -
Method Summary
Modifier and TypeMethodDescriptionget colorDefault.get colorHover.get colorSelected.get image from string.get image enum.getName()get name.get subtitleFont.get textFont.get titleFont.
-
Method Details
-
getName
get name.- Returns:
- String
-
getTitleFont
get titleFont.- Returns:
- font
-
getSubtitleFont
get subtitleFont.- Returns:
- font
-
getTextFont
get textFont.- Returns:
- font
-
getColorDefault
get colorDefault.- Returns:
- color
-
getColorHover
get colorHover.- Returns:
- color
-
getColorSelected
get colorSelected.- Returns:
- color
-
getImage
get image enum.- Parameters:
tile- the tile- Returns:
- the BufferedImage of the tile
-
getImage
get image from string.- Parameters:
imgName- the name of the image- Returns:
- the BufferedImage of the image
-