|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gatech.cs2335.lemmings.graphics.TileSet
edu.gatech.cs2335.lemmings.graphics.ImprovedTileSet
Class ImprovedTileSet: This tileset is essentially an improved version of the regular tileset.
Revision History:
v1.0 (Mar. 01, 2004) - Created the ImprovedTileSet class
| Nested Class Summary |
| Nested classes inherited from class edu.gatech.cs2335.lemmings.graphics.TileSet |
TileSet.FrameInformation |
| Field Summary |
| Fields inherited from class edu.gatech.cs2335.lemmings.graphics.TileSet |
DEBUG |
| Constructor Summary | |
ImprovedTileSet()
Creates a new ImprovedTileSet instance. |
|
| Method Summary | |
void |
drawTile(java.awt.Graphics destination,
java.awt.Point coordinates,
int tileNum)
Puts the tile with the specified number onto the graphics context passed in at the specified coordinates. |
java.awt.Dimension |
getDimension(int tileNum)
Returns the dimensions of the tile with the specified id. |
java.awt.Dimension |
getLargestDimension()
Returns the dimensions of the largest tile in the tileset. |
int |
getTileCount()
Returns the number of tiles in the tileset. |
protected boolean |
specialLoad()
Describe specialLoad method here. |
boolean |
unloadTileset()
Performs all the necessary clean-up operations. |
| Methods inherited from class edu.gatech.cs2335.lemmings.graphics.TileSet |
findFirstOccurrence, findLastOccurrence, getExtent, getFileName, getFrameList, getFramesetImage, getImage, loadTileset, reloadTileset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImprovedTileSet()
ImprovedTileSet instance.
| Method Detail |
protected boolean specialLoad()
specialLoad method here.
specialLoad in class TileSetboolean valuepublic boolean unloadTileset()
unloadTileset in class TileSetboolean valuepublic int getTileCount()
getTileCount in class TileSetint valuepublic java.awt.Dimension getLargestDimension()
getLargestDimension in class TileSetDimension valuepublic java.awt.Dimension getDimension(int tileNum)
getDimension in class TileSettileNum - an int value
Dimension value
public void drawTile(java.awt.Graphics destination,
java.awt.Point coordinates,
int tileNum)
drawTile in class TileSetdestination - the context to which we want to draw the tile.coordinates - the coordinates at which we want to draw the tile.tileNum - the number of the tile we want to draw. The tiles
will be numbered automatically, from left to right, from top to
bottom, when the image file is parsed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||