|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Background
Title: Background
Description: Interface for describing the backgrounds rendering process, if it is static, scrolling, parallax or something else.
Copyright: (c) 2010
Method Summary | |
---|---|
void |
addAnimation(Animation animation)
|
void |
draw(java.awt.Graphics2D graphics,
int xOffset,
int yOffset)
Draws the back ground based on the current offset of the map, and the Backgrounds equation for calculating its position. |
void |
setMapSize(MapSize mapSize)
Set the map size, so the back ground can be adjusted accordingly. |
void |
setScreenSize(int width,
int height)
Set the screen size, so the back ground can be adjusted accordingly. |
Methods inherited from interface org.deken.game.Updateable |
---|
getName, update |
Method Detail |
---|
void addAnimation(Animation animation)
void draw(java.awt.Graphics2D graphics, int xOffset, int yOffset)
graphics
- xOffset
- intyOffset
- intvoid setScreenSize(int width, int height)
width
- intheight
- intvoid setMapSize(MapSize mapSize)
mapSize
- int
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |