unc.cdva.utils
Class Constants

java.lang.Object
  extended by unc.cdva.utils.Constants

public class Constants
extends java.lang.Object

All the hard coded constants used by the game

Author:
Guillaume Conte

Field Summary
static float[] AMBIENT_LIGHT
          Specifies the ambient lighting values the game lighting.
static javax.vecmath.Vector3f BASE_VECTOR
           
static float[] CAMERA_FACING
           
static boolean DEBUG
          Flag that indicates if the project is in a developmental phase.
static float[] DIFFUSE_LIGHT
          Specifies the diffuse lighting values the game lighting.
static long DISTANCE_MAPPING_FACTOR
          Represents the factor to convert rendering coordinates into logical game coordinates.
static java.lang.String GRAPHICS_FILE
           
static java.lang.String LEVELS_FILE
           
static boolean LONG_TESTS
          Specifies that test methods/classes need not be concerned by overly long tests.
static int MAX_LEVEL
           
static float PATHWAY_END
          Specifies how far the pathway extends (used in figuring out if a boat has hit the dam).
static float PATHWAY_MAX
          pathway extends (this does not change the graphics! just the projectile hit/miss properties).
static float PATHWAY_MIN
          pathway extends (this does not change the graphics! just the projectile hit/miss properties).
static float[] POSITION_CAMERA
           
static float[] POSITION_LIGHT
           
static java.lang.String PREFERENCES
           
static float RANGE_CAR_SPEED
           
static float[] SPECULAR_LIGHT
          Specifies the specular lighting values the game lighting.
static float TARGET_LENGTH
          Lenght of a target 3d object
static float TARGET_WIDTH
          Width of a target 3d object
static long TIMER_RATE
          How fast the game timer ticks (in ms)
 
Constructor Summary
Constants()
           
 
Method Summary
static void setCameraFacing(javax.vecmath.Vector3f vals)
           
static void setCameraPos(javax.vecmath.Vector3f vals)
           
static void setTimerRate(long value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LONG_TESTS

public static final boolean LONG_TESTS
Specifies that test methods/classes need not be concerned by overly long tests. Set to false to have tests try to execute in a reasonably short amount of time.

See Also:
Constant Field Values

DEBUG

public static final boolean DEBUG
Flag that indicates if the project is in a developmental phase. Controls output and a few other things.

See Also:
Constant Field Values

TIMER_RATE

public static long TIMER_RATE
How fast the game timer ticks (in ms)


DISTANCE_MAPPING_FACTOR

public static final long DISTANCE_MAPPING_FACTOR
Represents the factor to convert rendering coordinates into logical game coordinates. Specifically it is the ratio of logical game distance to the distance of one unit in jogl.

See Also:
Constant Field Values

PATHWAY_MAX

public static final float PATHWAY_MAX
pathway extends (this does not change the graphics! just the projectile hit/miss properties).

See Also:
Constant Field Values

PATHWAY_MIN

public static final float PATHWAY_MIN
pathway extends (this does not change the graphics! just the projectile hit/miss properties).

See Also:
Constant Field Values

PATHWAY_END

public static final float PATHWAY_END
Specifies how far the pathway extends (used in figuring out if a boat has hit the dam).

See Also:
Constant Field Values

TARGET_LENGTH

public static final float TARGET_LENGTH
Lenght of a target 3d object

See Also:
Constant Field Values

TARGET_WIDTH

public static final float TARGET_WIDTH
Width of a target 3d object

See Also:
Constant Field Values

AMBIENT_LIGHT

public static final float[] AMBIENT_LIGHT
Specifies the ambient lighting values the game lighting.


DIFFUSE_LIGHT

public static final float[] DIFFUSE_LIGHT
Specifies the diffuse lighting values the game lighting.


SPECULAR_LIGHT

public static final float[] SPECULAR_LIGHT
Specifies the specular lighting values the game lighting.


POSITION_LIGHT

public static final float[] POSITION_LIGHT

POSITION_CAMERA

public static float[] POSITION_CAMERA

CAMERA_FACING

public static float[] CAMERA_FACING

BASE_VECTOR

public static final javax.vecmath.Vector3f BASE_VECTOR

GRAPHICS_FILE

public static final java.lang.String GRAPHICS_FILE
See Also:
Constant Field Values

LEVELS_FILE

public static final java.lang.String LEVELS_FILE
See Also:
Constant Field Values

PREFERENCES

public static final java.lang.String PREFERENCES
See Also:
Constant Field Values

MAX_LEVEL

public static final int MAX_LEVEL
See Also:
Constant Field Values

RANGE_CAR_SPEED

public static final float RANGE_CAR_SPEED
See Also:
Constant Field Values
Constructor Detail

Constants

public Constants()
Method Detail

setTimerRate

public static void setTimerRate(long value)

setCameraPos

public static void setCameraPos(javax.vecmath.Vector3f vals)

setCameraFacing

public static void setCameraFacing(javax.vecmath.Vector3f vals)