Enum BoulderDashCaveMap

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BoulderDashCaveMap>, org.refcodes.data.DataLocator

    public enum BoulderDashCaveMap
    extends java.lang.Enum<BoulderDashCaveMap>
    implements org.refcodes.data.DataLocator
    The BoulderDashCaveMap defines the cave maps which can be retrieved by the according BoulderDashCaveMapFactory.
    See Also:
    "http://codeincomplete.com/posts/javascript-boulderdash/decoded_cave_data.pdf", "http://maps.speccy.cz/map.php?id=BoulderDash1&sort=4&part=2&ath=", "http://maps.speccy.cz/"
    • Method Detail

      • values

        public static BoulderDashCaveMap[] 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 (BoulderDashCaveMap c : BoulderDashCaveMap.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BoulderDashCaveMap 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
      • getDataUrl

        public java.net.URL getDataUrl()
        Specified by:
        getDataUrl in interface org.refcodes.data.DataLocator
      • getDataInputStream

        public java.io.InputStream getDataInputStream()
        Specified by:
        getDataInputStream in interface org.refcodes.data.DataLocator
      • fromName

        public static BoulderDashCaveMap fromName​(java.lang.String aMapName)
        Retrieves the enumeration element representing the given map name (ignoring the case) or null if none was found.
        Parameters:
        aMapName - The map name for which to get the enumeration element.
        Returns:
        The enumeration element determined or null if none matching was found.