ch.sahits.game.graphic.display.dialog
Enum ETransferDialogType

java.lang.Object
  extended by java.lang.Enum<ETransferDialogType>
      extended by ch.sahits.game.graphic.display.dialog.ETransferDialogType
All Implemented Interfaces:
Serializable, Comparable<ETransferDialogType>

public enum ETransferDialogType
extends Enum<ETransferDialogType>

Indicating the type of the trading dialog type.

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Dec 18, 2011

Enum Constant Summary
CITY_TO_SHIP
          Transfer between city and a ship
CITY_TO_STORAGE
          Transfer between city and the trading office
STORAGE_TO_SHIP
          Transfer between the trading office and a ship
WEAPON
          Transfer weapons from storage to the ship
 
Method Summary
static ETransferDialogType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ETransferDialogType[] 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

CITY_TO_SHIP

public static final ETransferDialogType CITY_TO_SHIP
Transfer between city and a ship


CITY_TO_STORAGE

public static final ETransferDialogType CITY_TO_STORAGE
Transfer between city and the trading office


STORAGE_TO_SHIP

public static final ETransferDialogType STORAGE_TO_SHIP
Transfer between the trading office and a ship


WEAPON

public static final ETransferDialogType WEAPON
Transfer weapons from storage to the ship

Method Detail

values

public static ETransferDialogType[] 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 (ETransferDialogType c : ETransferDialogType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ETransferDialogType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.