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 Summary
FieldsModifier and TypeFieldDescriptionstatic String
The about text.static TextOptions
The text options forABOUT
.static boolean
Indicates whether user attacks shall handled as continuous events or a single event.static boolean
This boolean indicates whether the game is in debug mode.static RGBAColor
The game's debug text color.static TextOptions
The game's text options.static float
Gravitational constant g in pxPerUnit/s^2.static RGBAColor
The game's background color.static final org.apache.logging.log4j.Logger
The Global GAME_LOGGER.static RGBAColor
The game's text color.static String
The game's text font.static int
The game's text size.static int
Grid height.static float
Height in units that GameElement are tolerated to fall below the screens border before they will be deleted.static int
Grid width.static TextOptions
The game's text options (hints).static int
Time in milliseconds to wait after each logicLoop, that simulates physics changes positions, detects collisions, ...static RGBAColor
The menu's background color.static RGBAColor
The menu's box color (default).static RGBAColor
The menu's box color (option).static RGBAColor
The menu's box color (selected).static TextOptions
The game's text options (menu).static RGBAColor
The menu's text color.static String
The menu's text font.static int
The menu's text size.static String
The Name of the Game.static int
static int
static final Random
The GameWide randomness source.static int
Size of one in-game unit in pixels.static int
Time in milliseconds to wait after each renderLoop, that refreshes all graphical elements.static final String
The search path for dynamically loaded classes; seeReflectUtils
.static String
The version of the Game. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Set values which cannot be loaded byParsers
.
-
Field Details
-
SEARCH_PATH
The search path for dynamically loaded classes; seeReflectUtils
.- See Also:
-
PRNG
The GameWide randomness source. -
ABOUT
The about text. -
ABOUT_TEXT
The text options forABOUT
. -
DEBUG
@NoSet public static boolean DEBUGThis boolean indicates whether the game is in debug mode. -
CONTINUOUS_ATTACK
@NoSet public static boolean CONTINUOUS_ATTACKIndicates whether user attacks shall handled as continuous events or a single event. -
NAME
The Name of the Game. -
VERSION
The version of the Game. -
PX_PER_UNIT
public static int PX_PER_UNITSize of one in-game unit in pixels. So a Vec2D(1, 0) will be projected to (pxPerUnit, 0) -
GRID_W
public static int GRID_WGrid width. Determines how broad the window game will be -
GRID_H
public static int GRID_HGrid height. Determines how high the window game will be -
GRID_TOLERANCE_BELOW
public static float GRID_TOLERANCE_BELOWHeight 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 -
PIXEL_H
@NoSet public static int PIXEL_H -
RENDER_DELTA
public static int RENDER_DELTATime in milliseconds to wait after each renderLoop, that refreshes all graphical elements. -
LOGIC_DELTA
public static int LOGIC_DELTATime in milliseconds to wait after each logicLoop, that simulates physics changes positions, detects collisions, ... -
G
public static float GGravitational constant g in pxPerUnit/s^2. Determines how fast something accelerates upon falling. -
MENU_BACKGROUND_COLOR
The menu's background color. -
MENU_BOX_COLOR
The menu's box color (default). -
MENU_BOX_SELECT_COLOR
The menu's box color (selected). -
MENU_BOX_OPTION_COLOR
The menu's box color (option). -
MENU_TEXT_COLOR
The menu's text color. -
MENU_TEXT_FONT
The menu's text font. -
MENU_TEXT_SIZE
public static int MENU_TEXT_SIZEThe menu's text size. -
GAME_BACKGROUD_COLOR
The game's background color. -
GAME_TEXT_COLOR
The game's text color. -
GAME_TEXT_FONT
The game's text font. -
GAME_TEXT_SIZE
public static int GAME_TEXT_SIZEThe game's text size. -
DEBUG_TEXT_COLOR
The game's debug text color. -
DEFAULT_TEXT
The game's text options. -
MENU_TEXT
The game's text options (menu). -
HINT_TEXT
The game's text options (hints). -
GAME_LOGGER
@NoSet public static final org.apache.logging.log4j.Logger GAME_LOGGERThe Global GAME_LOGGER.
-
-
Method Details
-
afterVisit
@AfterSetting public static void afterVisit()Set values which cannot be loaded byParsers
.
-