com.golden.gamedev.object.background
Class AbstractTileBackground
java.lang.Object
|
+--com.golden.gamedev.object.Background
|
+--com.golden.gamedev.object.background.AbstractTileBackground
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- TileBackground
- public abstract class AbstractTileBackground
- extends Background
- See Also:
- Serialized Form
Method Summary |
protected abstract BufferedImage |
getImage(int tilenum)
|
int[][] |
getTiles()
|
int |
getTilesHeight()
|
int |
getTileSize()
|
int |
getTilesWidth()
|
int |
getTileX()
|
int |
getTileY()
|
void |
render(Graphics2D g,
int xbg,
int ybg,
int x,
int y,
int w,
int h)
|
void |
setClip(int x,
int y,
int width,
int height)
Sets background clipping area, the default is as large as screen size. |
void |
setLocation(int xs,
int ys)
|
void |
setSize(int horiz,
int vert)
|
void |
setTileAt(int tileX,
int tileY,
int num)
|
void |
setTileLocation(int xs,
int ys)
|
void |
setTiles(int[][] tiles)
|
Methods inherited from class com.golden.gamedev.object.Background |
getClip, getDefaultBackground, getHeight, getWidth, getX, getY, move, render, setToCenter, setToCenter, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTileBackground
public AbstractTileBackground(int horiz,
int vert,
int tileSize)
AbstractTileBackground
public AbstractTileBackground(int[][] tiles,
int tileSize)
setClip
public void setClip(int x,
int y,
int width,
int height)
- Description copied from class:
Background
- Sets background clipping area, the default is as large as screen size.
- Overrides:
setClip
in class Background
- See Also:
Background.screen
setSize
public void setSize(int horiz,
int vert)
- Overrides:
setSize
in class Background
setLocation
public void setLocation(int xs,
int ys)
- Overrides:
setLocation
in class Background
setTileLocation
public void setTileLocation(int xs,
int ys)
getImage
protected abstract BufferedImage getImage(int tilenum)
render
public void render(Graphics2D g,
int xbg,
int ybg,
int x,
int y,
int w,
int h)
- Overrides:
render
in class Background
getTiles
public int[][] getTiles()
setTiles
public void setTiles(int[][] tiles)
setTileAt
public void setTileAt(int tileX,
int tileY,
int num)
getTilesWidth
public int getTilesWidth()
getTilesHeight
public int getTilesHeight()
getTileX
public int getTileX()
getTileY
public int getTileY()
getTileSize
public int getTileSize()