ch.sahits.game.graphic.display.gameplay
Enum TradeDialog.ETransferAmount

java.lang.Object
  extended by java.lang.Enum<TradeDialog.ETransferAmount>
      extended by ch.sahits.game.graphic.display.gameplay.TradeDialog.ETransferAmount
All Implemented Interfaces:
Serializable, Comparable<TradeDialog.ETransferAmount>
Enclosing class:
TradeDialog

private static enum TradeDialog.ETransferAmount
extends Enum<TradeDialog.ETransferAmount>

Enumeration over the transferable amount

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Nov 25, 2011

Enum Constant Summary
FIVE
          Transfer 5 items at the time
MAX
          Transfer all items at the time
ONE
          Tranfer one item at the time
 
Method Summary
static TradeDialog.ETransferAmount valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TradeDialog.ETransferAmount[] 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

ONE

public static final TradeDialog.ETransferAmount ONE
Tranfer one item at the time


FIVE

public static final TradeDialog.ETransferAmount FIVE
Transfer 5 items at the time


MAX

public static final TradeDialog.ETransferAmount MAX
Transfer all items at the time

Method Detail

values

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

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

valueOf

public static TradeDialog.ETransferAmount 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 Sahits GmbH. All Rights Reserved.