Enum Asset

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Asset>

    public enum Asset
    extends java.lang.Enum<Asset>
    All graphical assets. Pass these to a GAsset to display them.

    They are stored as enum variants so that they only need to be read once, and so that, in development, their paths can be changed rapidly without necessitating a large-scale refactor.

    Author:
    Luna Otte
    • Enum Constant Detail

      • BACKGROUND

        public static final Asset BACKGROUND
      • CHEATER_BG

        public static final Asset CHEATER_BG
      • CONTRACT_STORE_BG

        public static final Asset CONTRACT_STORE_BG
      • GAME_OVER_BG

        public static final Asset GAME_OVER_BG
      • LOADING

        public static final Asset LOADING
      • CABLE_BG

        public static final Asset CABLE_BG
      • CABLE_BG_COPPER

        public static final Asset CABLE_BG_COPPER
      • CABLE_BG_DOVE

        public static final Asset CABLE_BG_DOVE
      • CABLE_BG_FIBER

        public static final Asset CABLE_BG_FIBER
      • CABLE_BG_MAIL

        public static final Asset CABLE_BG_MAIL
      • CABLE_SELECTED_BG

        public static final Asset CABLE_SELECTED_BG
      • AVI_1

        public static final Asset AVI_1
      • AVI_2

        public static final Asset AVI_2
      • AVI_3

        public static final Asset AVI_3
      • AVI_4

        public static final Asset AVI_4
      • AVI_5

        public static final Asset AVI_5
      • AVI_6

        public static final Asset AVI_6
      • AVI_7

        public static final Asset AVI_7
      • AVI_8

        public static final Asset AVI_8
      • AVI_AI

        public static final Asset AVI_AI
      • AVI_Cheater

        public static final Asset AVI_Cheater
      • CITY

        public static final Asset CITY
      • CITY_SELECTED

        public static final Asset CITY_SELECTED
      • CITY_HIGHLIGHTED

        public static final Asset CITY_HIGHLIGHTED
      • CONFETTI

        public static final Asset CONFETTI
      • PLAYER_1ST_PLACE

        public static final Asset PLAYER_1ST_PLACE
      • PLAYER_2ND_PLACE

        public static final Asset PLAYER_2ND_PLACE
      • PLAYER_3RD_PLACE

        public static final Asset PLAYER_3RD_PLACE
      • PLAYER_LOSER

        public static final Asset PLAYER_LOSER
      • PLAYER_SAD

        public static final Asset PLAYER_SAD
      • PLAYER_SELECTOR

        public static final Asset PLAYER_SELECTOR
      • PODIUM

        public static final Asset PODIUM
      • ADD

        public static final Asset ADD
      • ADD_HOVER

        public static final Asset ADD_HOVER
      • CABLE_SKIP

        public static final Asset CABLE_SKIP
      • CONTRACT_SKIP

        public static final Asset CONTRACT_SKIP
      • CONFIRM

        public static final Asset CONFIRM
      • CONFIRM_HOVER

        public static final Asset CONFIRM_HOVER
      • REMOVE

        public static final Asset REMOVE
      • REMOVE_HOVER

        public static final Asset REMOVE_HOVER
    • Field Detail

      • ICON

        public static final java.util.Optional<java.awt.Image> ICON
        The icon for the entire game. If the icon couldn't be read, this is empty.
    • Method Detail

      • values

        public static Asset[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Asset c : Asset.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Asset valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getData

        public java.lang.String getData()
        Returns the SVG data of the asset
        Returns:
        The SVG data of the asset
      • getPath

        public java.lang.String getPath()
        Returns the path to the asset
        Returns:
        The path to the asset, relative to resources/assets