Package nz.ac.vuw.ecs.swen225.gp22.util
Class GameConstants
java.lang.Object
nz.ac.vuw.ecs.swen225.gp22.util.GameConstants
This class stores the constants needed for the dimensions of
the objects within the maze, as well as the colors used and
sizes of the window they will be displayed on.
- Author:
- Diana
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Color
Blue background colour.static final Color
Darker blue background colour.static final Color
Lighter blue background colour.static final Color
Pink button colour.static final int
Focus area of game.static final Dimension
Dimension of square game panel.static final int
Width and Height of game panel.static final Color
Light yellow colour.static final int
Number of tiles across the screen.static final int
Number of tiles in inventory.static final Dimension
Dimension of side panel.static final int
Width of side panel.static final Color
Brown text colour.static final int
Width and height of each tile.static final int
Height of window.static final Dimension
Dimension of full window.static final int
Width of window. -
Constructor Summary
-
Method Summary
-
Field Details
-
TILE_SIZE
public static final int TILE_SIZEWidth and height of each tile.- See Also:
-
NUM_GAME_TILE
public static final int NUM_GAME_TILENumber of tiles across the screen.- See Also:
-
FOCUS_AREA
public static final int FOCUS_AREAFocus area of game.- See Also:
-
NUM_INVENTORY_TILES
public static final int NUM_INVENTORY_TILESNumber of tiles in inventory.- See Also:
-
SIDEBAR_WIDTH
public static final int SIDEBAR_WIDTHWidth of side panel.- See Also:
-
WINDOW_HEIGHT
public static final int WINDOW_HEIGHTHeight of window.- See Also:
-
WINDOW_WIDTH
public static final int WINDOW_WIDTHWidth of window.- See Also:
-
GAME_WINDOW_SIZE
public static final int GAME_WINDOW_SIZEWidth and Height of game panel.- See Also:
-
WINDOW_SIZE
Dimension of full window. -
GAME_SIZE
Dimension of square game panel. -
SIDE_SIZE
Dimension of side panel. -
BUTTON_COLOR
Pink button colour. -
BG_COLOR_LIGHTER
Lighter blue background colour. -
BG_COLOR_DARKER
Darker blue background colour. -
BG_COLOR
Blue background colour. -
TEXT_COLOR
Brown text colour. -
LIGHT_YELLOW_COLOR
Light yellow colour.
-
-
Constructor Details
-
GameConstants
public GameConstants()
-