org.deken.game.map.renderer
Class StaticTileMapRenderer
java.lang.Object
org.deken.game.map.renderer.BaseMapRenderer
org.deken.game.map.renderer.TileMapRenderer
org.deken.game.map.renderer.StaticTileMapRenderer
- All Implemented Interfaces:
- MapRenderer
public class StaticTileMapRenderer
- extends TileMapRenderer
Title: StaticTileMapRenderer
Description: This Renderer draws the Sprites based on their tile location
from top to bottom, and the player last, all by layer. The size of the map
matches the size of the screen, meaning it only draws what is on the screen,
the map does not move.
Copyright: Copyright (c) Jan 22, 2012
- Version:
- 1.0
- Author:
- Gary Deken
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticTileMapRenderer
public StaticTileMapRenderer(GameMap map)
draw
public void draw(java.awt.Graphics2D graphics)
- Draws the specified TileMap.
- Specified by:
draw
in interface MapRenderer
- Specified by:
draw
in class TileMapRenderer
- Parameters:
graphics
- Graphics2D
getEdgeBottom
public int getEdgeBottom()
getEdgeLeft
public int getEdgeLeft()
getEdgeRight
public int getEdgeRight()
getEdgeTop
public int getEdgeTop()