Enum EScene

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

    public enum EScene
    extends java.lang.Enum<EScene>
    Enumeration oof the scenes, that can be displayed in the MainView
    Author:
    Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 17, 2012
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ARMORY
      Indicate that currently the armory is displayed.
      CHURCH
      Indicate that currently the church is displayed
      CITY_HALL
      Indicate that currently the city hall is displayed
      GUILD
      Indicate that currtently the guild is displayed
      LOANER
      Indicate that currently the loaners office is displayed
      MARKET
      Indicate that currently the market scene is displayed
      PORT
      Indicate that currently the port scene is displayed
      SEAMAP
      Indicate that currently the sea map is displayed
      SHIPYARD
      Indicate that currently the shipyard is displayed
      TAVERN
      Indicate that currently the tavern scene is displayed
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EScene()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static EScene valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EScene[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • PORT

        public static final EScene PORT
        Indicate that currently the port scene is displayed
      • MARKET

        public static final EScene MARKET
        Indicate that currently the market scene is displayed
      • TAVERN

        public static final EScene TAVERN
        Indicate that currently the tavern scene is displayed
      • SHIPYARD

        public static final EScene SHIPYARD
        Indicate that currently the shipyard is displayed
      • CITY_HALL

        public static final EScene CITY_HALL
        Indicate that currently the city hall is displayed
      • LOANER

        public static final EScene LOANER
        Indicate that currently the loaners office is displayed
      • SEAMAP

        public static final EScene SEAMAP
        Indicate that currently the sea map is displayed
      • CHURCH

        public static final EScene CHURCH
        Indicate that currently the church is displayed
      • GUILD

        public static final EScene GUILD
        Indicate that currtently the guild is displayed
      • ARMORY

        public static final EScene ARMORY
        Indicate that currently the armory is displayed.
    • Constructor Detail

      • EScene

        private EScene()
    • Method Detail

      • values

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

        public static EScene 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