public abstract class AbstractForeground
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected BackgroundComponent[] |
components |
static java.lang.String |
DIR
Foregrounds path.
|
protected int |
fact |
protected int |
numberOfComponents |
protected java.lang.String |
theme |
static java.lang.String[] |
THEMES
Foregrounds list.
|
protected boolean |
wide |
Constructor and Description |
---|
AbstractForeground(java.lang.String theme,
int fact)
Create a new background.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
load()
Load foreground ressources here, must be implemented.
|
void |
primaryRender(java.awt.Graphics2D g)
Foreground primary renderings (before map).
|
void |
secondaryRender(java.awt.Graphics2D g)
Foreground secondary renderings (after map).
|
void |
update(float speed,
int y,
float extrp)
Background updates.
|
public static final java.lang.String DIR
public static final java.lang.String[] THEMES
protected BackgroundComponent[] components
protected int fact
protected boolean wide
protected int numberOfComponents
protected java.lang.String theme
public AbstractForeground(java.lang.String theme, int fact)
theme
- foreground theme.fact
- factor reference.protected abstract void load()
public final void update(float speed, int y, float extrp)
speed
- scrolling speed.y
- foreground y.extrp
- extrapolation value.public final void primaryRender(java.awt.Graphics2D g)
g
- graphic output.public final void secondaryRender(java.awt.Graphics2D g)
g
- graphic output.