Package break_out
Class Constants
- java.lang.Object
-
- break_out.Constants
-
public class Constants extends java.lang.Object
A class that contains all constant values to configure the game- Author:
- dmlux, modified by I. Schumacher, modified by Gruppe 175: Ruben Meyer und Moritz Henseleit
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
APP_TITLE
the application namestatic java.awt.Color
BACKGROUND
The background color for the game menustatic java.lang.Integer
BALL_DIAMETER
The ball diameter in pixelsstatic java.lang.Double
BALL_SPEED
The ball speedstatic java.awt.Color
COLOR_COMPONENT
The default component colorstatic java.awt.Color
COLOR_GAME_BACKGROUND
The background color for the fieldstatic java.awt.Color
COLOR_PADDLE_BOTTOM
The component color for the bottom paddlestatic java.awt.Color
COLOR_PADDLE_TOP
The component color for the top paddlestatic boolean
DEBUG_MODE
Debugging flag for special rendering hintsstatic java.lang.Double
DX_MOVEMENT
The paddle speedstatic java.lang.Integer
PADDLE_HEIGHT
The paddle height in pixelsstatic java.lang.Integer
PADDLE_WIDTH
The paddle width in pixelsstatic java.lang.Double
REFLECTION_OFFSET
The distance between paddle and the lower reflection offset.static java.lang.Integer
SCREEN_HEIGHT
The screen height in pixelsstatic java.lang.Integer
SCREEN_WIDTH
The screen width in pixelsstatic java.lang.Integer
SQUARES_X
Amount of columns for blocksstatic java.lang.Integer
SQUARES_Y
Amount of the rows
-
Constructor Summary
Constructors Constructor Description Constants()
-
-
-
Field Detail
-
SCREEN_WIDTH
public static final java.lang.Integer SCREEN_WIDTH
The screen width in pixels
-
SCREEN_HEIGHT
public static final java.lang.Integer SCREEN_HEIGHT
The screen height in pixels
-
APP_TITLE
public static final java.lang.String APP_TITLE
the application name- See Also:
- Constant Field Values
-
DEBUG_MODE
public static final boolean DEBUG_MODE
Debugging flag for special rendering hints- See Also:
- Constant Field Values
-
BACKGROUND
public static final java.awt.Color BACKGROUND
The background color for the game menu
-
SQUARES_X
public static final java.lang.Integer SQUARES_X
Amount of columns for blocks
-
SQUARES_Y
public static final java.lang.Integer SQUARES_Y
Amount of the rows
-
PADDLE_WIDTH
public static final java.lang.Integer PADDLE_WIDTH
The paddle width in pixels
-
PADDLE_HEIGHT
public static final java.lang.Integer PADDLE_HEIGHT
The paddle height in pixels
-
REFLECTION_OFFSET
public static final java.lang.Double REFLECTION_OFFSET
The distance between paddle and the lower reflection offset.
-
BALL_DIAMETER
public static final java.lang.Integer BALL_DIAMETER
The ball diameter in pixels
-
DX_MOVEMENT
public static final java.lang.Double DX_MOVEMENT
The paddle speed
-
BALL_SPEED
public static final java.lang.Double BALL_SPEED
The ball speed
-
COLOR_GAME_BACKGROUND
public static final java.awt.Color COLOR_GAME_BACKGROUND
The background color for the field
-
COLOR_COMPONENT
public static final java.awt.Color COLOR_COMPONENT
The default component color
-
COLOR_PADDLE_BOTTOM
public static final java.awt.Color COLOR_PADDLE_BOTTOM
The component color for the bottom paddle
-
COLOR_PADDLE_TOP
public static final java.awt.Color COLOR_PADDLE_TOP
The component color for the top paddle
-
-