public abstract class BackgroundPlatform extends java.lang.Object implements Background
Constructor and Description |
---|
BackgroundPlatform(java.lang.String theme,
int min,
int max)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BackgroundElement |
createElement(java.lang.String name,
int x,
int y,
boolean alpha)
Create an element from a name, plus its coordinates.
|
BackgroundElement |
createElement(java.lang.String path,
java.lang.String name,
int x,
int y,
boolean alpha)
Create an element from a path and its name, plus its coordinates.
|
int |
getOffsetY()
Get the y offset.
|
java.lang.String |
getTheme()
Get the background theme.
|
void |
render(com.b3dgs.lionengine.Graphic g)
Background renderings.
|
void |
update(double extrp,
double speed,
double y)
Background updates.
|
public BackgroundPlatform(java.lang.String theme, int min, int max)
theme
- The background theme.min
- The minimal y value for background.max
- The maximal y value for background.public BackgroundElement createElement(java.lang.String name, int x, int y, boolean alpha)
name
- The element name.x
- The location x.y
- The location y.alpha
- The alpha use flag.public BackgroundElement createElement(java.lang.String path, java.lang.String name, int x, int y, boolean alpha)
path
- The element path.name
- The element name.x
- The location x.y
- The location y.alpha
- The alpha use flag.public int getOffsetY()
public java.lang.String getTheme()
public final void update(double extrp, double speed, double y)
Background
update
in interface Background
extrp
- The extrapolation value.speed
- The scrolling speed.y
- The background y.public final void render(com.b3dgs.lionengine.Graphic g)
Background
render
in interface Background
g
- The graphic output.