|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Item.Type>
javoids.Item.Type
public static enum Item.Type
The type of item. This is currently just the name of the item.
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 |
---|
public static final Item.Type NO_TOOL
public static final Item.Type GUN1
public static final Item.Type GUN2
public static final Item.Type GUN3
public static final Item.Type MACHINEGUN1
public static final Item.Type MACHINEGUN2
public static final Item.Type MACHINEGUN3
public static final Item.Type MULTIGUN1
public static final Item.Type MULTIGUN2
public static final Item.Type MULTIGUN3
public static final Item.Type MULTIGUN4
public static final Item.Type MULTIGUN5
public static final Item.Type MULTIGUN6
public static final Item.Type ROCKET1
public static final Item.Type ROCKET2
public static final Item.Type SHIELD
public static final Item.Type AFTERBURNER
public static final Item.Type JUMP
public static final Item.Type BOMB1
public static final Item.Type BOMB2
Method Detail |
---|
public static final Item.Type[] values()
for(Item.Type c : Item.Type.values()) System.out.println(c);
public static Item.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |