moagg.types
Class Constant

java.lang.Object
  extended by moagg.types.Constant

public class Constant
extends java.lang.Object


Field Summary
static double BOUNCE_FACTOR
          A multiplier for the vertical velocity, if bouncing from a platform.
static java.awt.Color ERROR_POP_UP_FRAME_COLOR
          The frame color (with alpha component) for error pop ups.
static double FRICTION_FACTOR
          Multiplication factor for the friction (which is 50 per default).
static double GRAVITY_FACTOR
          Multiplication factor for the gravity (which is 100 per default).
static int INITIAL_SHIP_HEALTH
          The initial health of the player's ship.
static int INITIAL_SHIP_MASS
          The initial ship mass.
static double MAX_HORIZONTAL_LANDING_SPEED
          The max. horizontal speed of a ship to land without bouncing.
static int MAX_SHIP_MASS
          The maximum ship mass (INITIAL_SHIP_MASS + sum of all picked up crates' mass.
static double MAX_VERTICAL_BOUNCING_SPEED
          The max. vertical speed of a ship to bounce without being destroyed.
static double MAX_VERTICAL_LANDING_SPEED
          The max. vertical speed of a ship to land without bouncing.
static java.awt.Color MESSAGE_POP_UP_FRAME_COLOR
          The frame color (with alpha component) for message pop ups.
static double MIN_SHIP_DISTANCE_FOR_MULTIPLAYER_START_PLATFORM
          When determining the start platform in multiplayer mode, the pixel distance to other ships must not be less than this value.
static int RESPAWN_DELAY
          The delay between the ship explosion and its respawning in milliseconds.
static long SHIP_FUEL_CAPACITY
          The fuel capacity of the ship.
static long SHIP_FUEL_PER_MILLISECOND
          The amount of fuel per millisecond the ship thrusters will need when activated.
static double SHIP_ROTATION_SPEED
          The rotation speed of the ship.
static int SHIP_TAKE_OFF_PLATFORM_COLLISION_DELAY
          After the ship takes off, collisions with the platform are ignored for this amount of milliseconds.
static double SHIP_THRUST_FORCE
          The force of the ship thrusters.
static double STREAM_FACTOR
          Multiplication factor for streams.
static int SURFACES_ROTATION_ANGLE
          The rotation angle for one step in degrees.
static int SURFACES_ROTATION_STEPS
          The number of steps for a full rotation of 360 degrees.
static int TILE_SIZE
          The width/height of a playground tile in pixels.
static double TRIPLE_BLASTER_SPREAD_ANGLE
          Triple blaster spread angle.
 
Constructor Summary
Constant()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TILE_SIZE

public static final int TILE_SIZE
The width/height of a playground tile in pixels.

See Also:
Constant Field Values

SURFACES_ROTATION_ANGLE

public static final int SURFACES_ROTATION_ANGLE
The rotation angle for one step in degrees.

See Also:
Constant Field Values

SURFACES_ROTATION_STEPS

public static final int SURFACES_ROTATION_STEPS
The number of steps for a full rotation of 360 degrees.

See Also:
Constant Field Values

GRAVITY_FACTOR

public static final double GRAVITY_FACTOR
Multiplication factor for the gravity (which is 100 per default).

See Also:
Constant Field Values

STREAM_FACTOR

public static final double STREAM_FACTOR
Multiplication factor for streams.

See Also:
Constant Field Values

FRICTION_FACTOR

public static final double FRICTION_FACTOR
Multiplication factor for the friction (which is 50 per default).

See Also:
Constant Field Values

SHIP_FUEL_CAPACITY

public static final long SHIP_FUEL_CAPACITY
The fuel capacity of the ship.

See Also:
Constant Field Values

SHIP_FUEL_PER_MILLISECOND

public static final long SHIP_FUEL_PER_MILLISECOND
The amount of fuel per millisecond the ship thrusters will need when activated.

See Also:
Constant Field Values

SHIP_THRUST_FORCE

public static final double SHIP_THRUST_FORCE
The force of the ship thrusters.

See Also:
Constant Field Values

SHIP_ROTATION_SPEED

public static final double SHIP_ROTATION_SPEED
The rotation speed of the ship.

See Also:
Constant Field Values

INITIAL_SHIP_MASS

public static final int INITIAL_SHIP_MASS
The initial ship mass.

See Also:
Constant Field Values

MAX_SHIP_MASS

public static final int MAX_SHIP_MASS
The maximum ship mass (INITIAL_SHIP_MASS + sum of all picked up crates' mass.

See Also:
Constant Field Values

MAX_VERTICAL_LANDING_SPEED

public static final double MAX_VERTICAL_LANDING_SPEED
The max. vertical speed of a ship to land without bouncing.

See Also:
Constant Field Values

MAX_HORIZONTAL_LANDING_SPEED

public static final double MAX_HORIZONTAL_LANDING_SPEED
The max. horizontal speed of a ship to land without bouncing.

See Also:
Constant Field Values

MAX_VERTICAL_BOUNCING_SPEED

public static final double MAX_VERTICAL_BOUNCING_SPEED
The max. vertical speed of a ship to bounce without being destroyed.

See Also:
Constant Field Values

BOUNCE_FACTOR

public static final double BOUNCE_FACTOR
A multiplier for the vertical velocity, if bouncing from a platform.

See Also:
Constant Field Values

TRIPLE_BLASTER_SPREAD_ANGLE

public static final double TRIPLE_BLASTER_SPREAD_ANGLE
Triple blaster spread angle.

See Also:
Constant Field Values

INITIAL_SHIP_HEALTH

public static final int INITIAL_SHIP_HEALTH
The initial health of the player's ship.

See Also:
Constant Field Values

RESPAWN_DELAY

public static final int RESPAWN_DELAY
The delay between the ship explosion and its respawning in milliseconds.

See Also:
Constant Field Values

SHIP_TAKE_OFF_PLATFORM_COLLISION_DELAY

public static final int SHIP_TAKE_OFF_PLATFORM_COLLISION_DELAY
After the ship takes off, collisions with the platform are ignored for this amount of milliseconds.

See Also:
Constant Field Values

MIN_SHIP_DISTANCE_FOR_MULTIPLAYER_START_PLATFORM

public static final double MIN_SHIP_DISTANCE_FOR_MULTIPLAYER_START_PLATFORM
When determining the start platform in multiplayer mode, the pixel distance to other ships must not be less than this value.

See Also:
Constant Field Values

MESSAGE_POP_UP_FRAME_COLOR

public static final java.awt.Color MESSAGE_POP_UP_FRAME_COLOR
The frame color (with alpha component) for message pop ups.


ERROR_POP_UP_FRAME_COLOR

public static final java.awt.Color ERROR_POP_UP_FRAME_COLOR
The frame color (with alpha component) for error pop ups.

Constructor Detail

Constant

public Constant()


Copyright © 2008. All Rights Reserved.