public class SplashScreen
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BLACK_LOAD_TIME
The delay for the black screen transition
|
boolean |
doneLoading
Identifies if a transition has finished
|
java.awt.image.BufferedImage |
endSplash
Stores the image going through the transition
|
static boolean |
firstSwitch
Identifies if a transition has already started
|
int |
loadTime
The transition counter
|
static int |
MAP_SECTION_LOAD_TIME
The delay for the map (stage) screen transition
|
static int |
TITLE_SCREEN_LOAD_TIME
The delay for the title screen transition
|
| Constructor and Description |
|---|
SplashScreen()
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
loading(int loadingTime)
Sets the loading time
|
void |
paint(java.awt.Graphics g)
Draws the faded images
|
static void |
splash()
Updates the fading interval and changes the game state if the fading is done for an image
|
public static final int TITLE_SCREEN_LOAD_TIME
public static final int BLACK_LOAD_TIME
public static final int MAP_SECTION_LOAD_TIME
public int loadTime
public boolean doneLoading
public static boolean firstSwitch
public java.awt.image.BufferedImage endSplash
public void paint(java.awt.Graphics g)
g - An instance of the Graphics objectpublic void loading(int loadingTime)
loadingTime - How long the fading process will occur forpublic static void splash()