Package break_out

Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String APP_TITLE
      the application name
      static java.awt.Color BACKGROUND
      The background color for the game menu
      static java.lang.Integer BALL_DIAMETER
      The ball diameter in pixels
      static java.lang.Double BALL_SPEED
      The ball speed
      static boolean DEBUG_MODE
      Debugging flag for special rendering hints
      static java.lang.Double DX_MOVEMENT
      The paddle speed
      static java.lang.Integer PADDLE_HEIGHT
      The paddle height in pixels
      static java.lang.Integer PADDLE_WIDTH
      The paddle width in pixels
      static java.lang.Double REFLECTION_OFFSET
      The distance between paddle and the lower reflection offset.
      static java.lang.Integer SCREEN_HEIGHT
      The screen height in pixels
      static java.lang.Integer SCREEN_WIDTH
      The screen width in pixels
      static java.lang.Integer SQUARES_X
      Amount of columns for blocks
      static java.lang.Integer SQUARES_Y
      Amount of the rows
    • Constructor Summary

      Constructors 
      Constructor Description
      Constants()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • Constants

        public Constants()