public class BackgroundElement extends Object
Constructor and Description |
---|
BackgroundElement(int mainX,
int mainY,
Image renderable)
Create a background element.
|
Modifier and Type | Method and Description |
---|---|
int |
getMainX()
Get main location x.
|
int |
getMainY()
Get main location y.
|
double |
getOffsetX()
Get horizontal offset.
|
double |
getOffsetY()
Get vertical offset.
|
Image |
getRenderable()
Get renderable reference.
|
void |
setMainX(int mainX)
Set the main horizontal location.
|
void |
setMainY(int mainY)
Set the main vertical location.
|
void |
setOffsetX(double offsetX)
Set horizontal offset value.
|
void |
setOffsetY(double offsetY)
Set vertical offset value.
|
public BackgroundElement(int mainX, int mainY, Image renderable)
mainX
- The main location x.mainY
- The main location y.renderable
- The element renderable.public void setMainX(int mainX)
mainX
- The main horizontal location.public void setMainY(int mainY)
mainY
- The main vertical location.public void setOffsetX(double offsetX)
offsetX
- The horizontal offset value.public void setOffsetY(double offsetY)
offsetY
- The vertical offset value.public Image getRenderable()
public int getMainX()
public int getMainY()
public double getOffsetX()
public double getOffsetY()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.