javoids
Enum Item.Type

java.lang.Object
  extended by java.lang.Enum<Item.Type>
      extended by javoids.Item.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Item.Type>
Enclosing class:
Item

public static enum Item.Type
extends java.lang.Enum<Item.Type>
implements java.io.Serializable

The type of item. This is currently just the name of the item.

Author:
mallette

Enum Constant Summary
AFTERBURNER
          extra movement power for a sprite
BOMB1
          bomb that breaks apart larger javoids into smaller parts (or destroys the smallest)
BOMB2
          bomb that destroyes everything except the player
GUN1
          the weakest gun
GUN2
          a stronger gun, but fires less shots
GUN3
          the strongest regular gun, but fires the fewest shots
JUMP
          hyperspace jump (teleport to new location)
MACHINEGUN1
          weakest machine gun
MACHINEGUN2
          regular machine gun
MACHINEGUN3
          strongest machine gun
MULTIGUN1
          weakest machine gun that fires multiple bullets two at a time (in front)
MULTIGUN2
          regular machine gun that fires multiple bullets three at a time
MULTIGUN3
          strongest front firing machine gun that fires multiple bullets five at a time
MULTIGUN4
          weak machinegun gun that fires multiple bullets at a time in the 4 cardinal directions
MULTIGUN5
          strongest machinegun gun that fires multiple bullets at a time in the 8 cardinal directions
MULTIGUN6
          strongest machine gun that fires multiple bullets at a time in all directions but at reduced strength
NO_TOOL
          placeholder when no item is selected
ROCKET1
          fires a ssmall number of rockets
ROCKET2
          fires a lot of rockets in rapid succession
SHIELD
          a shield
 
Method Summary
static Item.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Item.Type[] 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

NO_TOOL

public static final Item.Type NO_TOOL
placeholder when no item is selected


GUN1

public static final Item.Type GUN1
the weakest gun


GUN2

public static final Item.Type GUN2
a stronger gun, but fires less shots


GUN3

public static final Item.Type GUN3
the strongest regular gun, but fires the fewest shots


MACHINEGUN1

public static final Item.Type MACHINEGUN1
weakest machine gun


MACHINEGUN2

public static final Item.Type MACHINEGUN2
regular machine gun


MACHINEGUN3

public static final Item.Type MACHINEGUN3
strongest machine gun


MULTIGUN1

public static final Item.Type MULTIGUN1
weakest machine gun that fires multiple bullets two at a time (in front)


MULTIGUN2

public static final Item.Type MULTIGUN2
regular machine gun that fires multiple bullets three at a time


MULTIGUN3

public static final Item.Type MULTIGUN3
strongest front firing machine gun that fires multiple bullets five at a time


MULTIGUN4

public static final Item.Type MULTIGUN4
weak machinegun gun that fires multiple bullets at a time in the 4 cardinal directions


MULTIGUN5

public static final Item.Type MULTIGUN5
strongest machinegun gun that fires multiple bullets at a time in the 8 cardinal directions


MULTIGUN6

public static final Item.Type MULTIGUN6
strongest machine gun that fires multiple bullets at a time in all directions but at reduced strength


ROCKET1

public static final Item.Type ROCKET1
fires a ssmall number of rockets


ROCKET2

public static final Item.Type ROCKET2
fires a lot of rockets in rapid succession


SHIELD

public static final Item.Type SHIELD
a shield


AFTERBURNER

public static final Item.Type AFTERBURNER
extra movement power for a sprite


JUMP

public static final Item.Type JUMP
hyperspace jump (teleport to new location)


BOMB1

public static final Item.Type BOMB1
bomb that breaks apart larger javoids into smaller parts (or destroys the smallest)


BOMB2

public static final Item.Type BOMB2
bomb that destroyes everything except the player

Method Detail

values

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

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

valueOf

public static Item.Type 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