moagg.types
Enum CrateType

java.lang.Object
  extended by java.lang.Enum<CrateType>
      extended by moagg.types.CrateType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CrateType>

public enum CrateType
extends java.lang.Enum<CrateType>


Enum Constant Summary
BACK
           
BIG
           
BONUS
           
DOUBLE
           
FUEL
           
LASER
           
MEDIUM
           
SMALL
           
TRIPLE
           
 
Method Summary
 java.lang.String getName()
           
 boolean isCargo()
           
 boolean isWeapon()
           
 boolean isWeaponDecorator()
           
static CrateType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CrateType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SMALL

public static final CrateType SMALL

MEDIUM

public static final CrateType MEDIUM

BIG

public static final CrateType BIG

BONUS

public static final CrateType BONUS

FUEL

public static final CrateType FUEL

LASER

public static final CrateType LASER

DOUBLE

public static final CrateType DOUBLE

TRIPLE

public static final CrateType TRIPLE

BACK

public static final CrateType BACK
Method Detail

values

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

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

valueOf

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

getName

public java.lang.String getName()

isCargo

public boolean isCargo()

isWeapon

public boolean isWeapon()

isWeaponDecorator

public boolean isWeaponDecorator()


Copyright © 2008. All Rights Reserved.