Package rekit.config

Class GameConf

java.lang.Object
rekit.config.GameConf
All Implemented Interfaces:
org.fuchss.configuration.Configurable

@SetterInfo(res="conf/game") public final class GameConf extends Object implements org.fuchss.configuration.Configurable
Configuration class that holds static options.
Author:
Angelo Aracri, Dominik Fuchss
  • Field Details

    • SEARCH_PATH

      @NoSet public static final String SEARCH_PATH
      The search path for dynamically loaded classes; see ReflectUtils.
      See Also:
    • PRNG

      @NoSet public static final Random PRNG
      The GameWide randomness source.
    • ABOUT

      public static String ABOUT
      The about text.
    • ABOUT_TEXT

      @NoSet public static TextOptions ABOUT_TEXT
      The text options for ABOUT.
    • DEBUG

      @NoSet public static boolean DEBUG
      This boolean indicates whether the game is in debug mode.
    • CONTINUOUS_ATTACK

      @NoSet public static boolean CONTINUOUS_ATTACK
      Indicates whether user attacks shall handled as continuous events or a single event.
    • NAME

      public static String NAME
      The Name of the Game.
    • VERSION

      public static String VERSION
      The version of the Game.
    • PX_PER_UNIT

      public static int PX_PER_UNIT
      Size of one in-game unit in pixels. So a Vec2D(1, 0) will be projected to (pxPerUnit, 0)
    • GRID_W

      public static int GRID_W
      Grid width. Determines how broad the window game will be
    • GRID_H

      public static int GRID_H
      Grid height. Determines how high the window game will be
    • GRID_TOLERANCE_BELOW

      public static float GRID_TOLERANCE_BELOW
      Height in units that GameElement are tolerated to fall below the screens border before they will be deleted.
    • PIXEL_W

      @NoSet public static int PIXEL_W
      Width of the window.
      Calculated by GRID_W * PX_PER_UNIT.
    • PIXEL_H

      @NoSet public static int PIXEL_H
      Height of the window.
      Calculated by GRID_H * PX_PER_UNIT.
    • RENDER_DELTA

      public static int RENDER_DELTA
      Time in milliseconds to wait after each renderLoop, that refreshes all graphical elements.
    • LOGIC_DELTA

      public static int LOGIC_DELTA
      Time in milliseconds to wait after each logicLoop, that simulates physics changes positions, detects collisions, ...
    • G

      public static float G
      Gravitational constant g in pxPerUnit/s^2. Determines how fast something accelerates upon falling.
    • GAME_BACKGROUD_COLOR

      public static RGBAColor GAME_BACKGROUD_COLOR
      The game's background color.
    • GAME_TEXT_COLOR

      public static RGBAColor GAME_TEXT_COLOR
      The game's text color.
    • GAME_TEXT_FONT

      public static String GAME_TEXT_FONT
      The game's text font.
    • GAME_TEXT_SIZE

      public static int GAME_TEXT_SIZE
      The game's text size.
    • DEBUG_TEXT_COLOR

      @NoSet public static RGBAColor DEBUG_TEXT_COLOR
      The game's debug text color.
    • DEFAULT_TEXT

      @NoSet public static TextOptions DEFAULT_TEXT
      The game's text options.
    • HINT_TEXT

      @NoSet public static TextOptions HINT_TEXT
      The game's text options (hints).
    • GAME_LOGGER

      @NoSet public static final org.apache.logging.log4j.Logger GAME_LOGGER
      The Global GAME_LOGGER.
  • Method Details

    • afterVisit

      @AfterSetting public static void afterVisit()
      Set values which cannot be loaded by Parsers.