|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.b3dgs.lionengine.game.background.AbstractForeground
public abstract class AbstractForeground
Foreground skeleton, used for future foregrounds implementation.
Field Summary | |
---|---|
protected BackgroundComponent[] |
components
Array of components. |
protected int |
numberOfComponents
Number of components. |
protected java.lang.String |
theme
Foreground theme name. |
protected boolean |
wide
Wide state. |
Constructor Summary | |
---|---|
AbstractForeground(java.lang.String theme)
Create a new background. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String theme
protected BackgroundComponent[] components
protected int numberOfComponents
protected boolean wide
Constructor Detail |
---|
public AbstractForeground(java.lang.String theme)
theme
- foreground theme.Method Detail |
---|
protected abstract void load()
public void update(float speed, int y, float extrp)
speed
- scrolling speed.y
- foreground y.extrp
- extrapolation value.public void primaryRender(java.awt.Graphics2D g)
g
- graphic output.public void secondaryRender(java.awt.Graphics2D g)
g
- graphic output.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |