org.deken.game.map.renderer
Class StaticTileMapRenderer

java.lang.Object
  extended by org.deken.game.map.renderer.BaseMapRenderer
      extended by org.deken.game.map.renderer.TileMapRenderer
          extended by 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

Field Summary
 
Fields inherited from class org.deken.game.map.renderer.BaseMapRenderer
map, mapSize, screenHeight, screenWidth
 
Constructor Summary
StaticTileMapRenderer(GameMap map)
           
 
Method Summary
 void draw(java.awt.Graphics2D graphics)
          Draws the specified TileMap.
 int getEdgeBottom()
           
 int getEdgeLeft()
           
 int getEdgeRight()
           
 int getEdgeTop()
           
 
Methods inherited from class org.deken.game.map.renderer.BaseMapRenderer
getScreenHeight, getScreenWidth, renderBackground, renderGameComponents, setScreenSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticTileMapRenderer

public StaticTileMapRenderer(GameMap map)
Method Detail

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()