game.core.powers
Enum PowerType

java.lang.Object
  extended by java.lang.Enum<PowerType>
      extended by game.core.powers.PowerType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PowerType>

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


Enum Constant Summary
AsteroidShieldPower
           
AsteroidStoppingPower
           
AutoPilotPower
           
BigShieldPower
           
BlastingShieldPower
           
BouncyShieldPower
           
BulletShieldPower
           
DiePower
           
ExplodingBulletPower
           
ExtraLifePower
           
RapidFirePower
           
SpreadingBulletPower
           
StickyAsteroidPower
           
TripleBulletPower
           
 
Field Summary
private  double duration
           
private  java.awt.image.BufferedImage img
           
private  boolean isBad
           
 
Method Summary
 double getDuration()
           
 java.awt.Image getImage()
           
static PowerType getRandom()
           
 boolean isBad()
           
static PowerType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PowerType[] 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

TripleBulletPower

public static final PowerType TripleBulletPower

SpreadingBulletPower

public static final PowerType SpreadingBulletPower

RapidFirePower

public static final PowerType RapidFirePower

AutoPilotPower

public static final PowerType AutoPilotPower

ExtraLifePower

public static final PowerType ExtraLifePower

DiePower

public static final PowerType DiePower

ExplodingBulletPower

public static final PowerType ExplodingBulletPower

BlastingShieldPower

public static final PowerType BlastingShieldPower

BouncyShieldPower

public static final PowerType BouncyShieldPower

BulletShieldPower

public static final PowerType BulletShieldPower

AsteroidShieldPower

public static final PowerType AsteroidShieldPower

AsteroidStoppingPower

public static final PowerType AsteroidStoppingPower

StickyAsteroidPower

public static final PowerType StickyAsteroidPower

BigShieldPower

public static final PowerType BigShieldPower
Field Detail

duration

private final double duration

isBad

private final boolean isBad

img

private java.awt.image.BufferedImage img
Method Detail

values

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

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

valueOf

public static PowerType 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
java.lang.NullPointerException - if the argument is null

getDuration

public double getDuration()

getImage

public java.awt.Image getImage()

isBad

public boolean isBad()

getRandom

public static PowerType getRandom()