|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.b3dgs.lionengine.game.background.BackgroundElement
public class BackgroundElement
Represents a background element (contained in a background component).
Constructor Summary | |
---|---|
BackgroundElement(int mainX,
int mainY,
Renderable sprite)
Create a new background element. |
Method Summary | |
---|---|
int |
getMainX()
Get main location x. |
int |
getMainY()
Get main location y. |
float |
getOffsetX()
Get horizontal offset. |
float |
getOffsetY()
Get vertical offset. |
Renderable |
getSprite()
Get sprite reference. |
void |
setOffsetX(float offsetX)
Set horizontal offset value. |
void |
setOffsetY(float offsetY)
Set vertical offset value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackgroundElement(int mainX, int mainY, Renderable sprite)
mainX
- main location x.mainY
- main location y.sprite
- element sprite.Method Detail |
---|
public Renderable getSprite()
public int getMainX()
public int getMainY()
public float getOffsetX()
public float getOffsetY()
public void setOffsetX(float offsetX)
offsetX
- horizontal offset value.public void setOffsetY(float offsetY)
offsetY
- vertical offset value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |