Class CollectibleFactory

java.lang.Object
  extended by CollectibleFactory

public class CollectibleFactory
extends java.lang.Object

Produces random collectibles. TODO: setting of probabilities (see Jannis's Moleskine for ideas).


Field Summary
static double BASE_SPEED
           
static int C_ANGLEDGUNS
           
static int C_FASTERGUNS
           
static int C_HEALTH
           
static int C_MOREGUNS
           
static int C_SICKNESS
           
static int C_STRAIGHTGUNS
           
static int C_STRONGERGUNS
           
static int N_COLLECTIBLE_CLASSES
           
protected  int side
           
 
Constructor Summary
CollectibleFactory(int the_side)
           
 
Method Summary
 Collectible collectible()
          Spits out a random collectible which has a speed based on the "side" variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N_COLLECTIBLE_CLASSES

public static final int N_COLLECTIBLE_CLASSES
See Also:
Constant Field Values

C_HEALTH

public static final int C_HEALTH
See Also:
Constant Field Values

C_MOREGUNS

public static final int C_MOREGUNS
See Also:
Constant Field Values

C_FASTERGUNS

public static final int C_FASTERGUNS
See Also:
Constant Field Values

C_STRONGERGUNS

public static final int C_STRONGERGUNS
See Also:
Constant Field Values

C_ANGLEDGUNS

public static final int C_ANGLEDGUNS
See Also:
Constant Field Values

C_STRAIGHTGUNS

public static final int C_STRAIGHTGUNS
See Also:
Constant Field Values

C_SICKNESS

public static final int C_SICKNESS
See Also:
Constant Field Values

BASE_SPEED

public static final double BASE_SPEED
See Also:
Constant Field Values

side

protected int side
Constructor Detail

CollectibleFactory

public CollectibleFactory(int the_side)
Method Detail

collectible

public Collectible collectible()
Spits out a random collectible which has a speed based on the "side" variable.