Class GameAssets


  • public class GameAssets
    extends Object
    A collection of Links to customized images for a Game or Series.

    Everything but the cover image can be seen and changed in the Settings menu for a game/series, under Theme.

    This class is immutable and thread-safe.
    • Method Detail

      • getLogo

        public Link getLogo()
        Gets a Link to the Speedrun.com logo at the top left.
        Returns:
        a Link to an image
      • getTinyCover

        public Link getTinyCover()
        Gets a Link to the "tiny" size version of the cover art for the game or series.
        Returns:
        a Link to an image
      • getSmallCover

        public Link getSmallCover()
        Gets a Link to the "small" size version of the cover art for the game or series.
        Returns:
        a Link to an image
      • getMediumCover

        public Link getMediumCover()
        Gets a Link to the "medium" size version of the cover art for the game or series.
        Returns:
        a Link to an image
      • getLargeCover

        public Link getLargeCover()
        Gets a Link to the "large" size version of the cover art for the game or series.
        Returns:
        a Link to an image
      • getIcon

        public Link getIcon()
        Gets a Link to the icon that is shown on the browser tab.
        Returns:
        a Link to an image
      • getFirstTrophy

        public Link getFirstTrophy()
        Gets a Link to the trophy icon that is shown next to the first place run.
        Returns:
        a Link to an image
      • getSecondTrophy

        public Link getSecondTrophy()
        Gets a Link to the trophy icon that is shown next to the second place run.
        Returns:
        a Link to an image
      • getThirdTrophy

        public Link getThirdTrophy()
        Gets a Link to the trophy icon that is shown next to the third place run.
        Returns:
        a Link to an image
      • getFourthTrophy

        public Optional<Link> getFourthTrophy()
        Gets a Link to the trophy icon that is shown next to the fourth place run.
        Returns:
        an Optional with a Link to an image, empty if a custom image is not set
      • getBackground

        public Optional<Link> getBackground()
        Gets a Link to the background image.
        Returns:
        an Optional with a Link to an image, empty if a custom image is not set
      • getForeground

        public Optional<Link> getForeground()
        Gets a Link to the foreground image.
        Returns:
        an Optional with a Link to an image, empty if a custom image is not set