moagg.artwork.tiles
Class TileImageFactory
java.lang.Object
moagg.artwork.tiles.TileImageFactory
public class TileImageFactory
- extends java.lang.Object
Method Summary |
int |
getCategoryId(java.lang.String category)
|
static TileImageFactory |
getInstance()
|
int[] |
getRGB(int categoryId,
int tileId)
|
java.awt.image.BufferedImage |
getTile(int categoryId,
int tileId)
|
java.awt.image.BufferedImage |
getTile(int categoryId,
int tileId,
int alpha,
int brightness)
|
void |
init(com.golden.gamedev.GameObject loader)
|
protected void |
initCategory(int categoryId,
java.lang.String dir,
com.golden.gamedev.GameObject loader)
|
protected void |
initTile(int categoryId,
int tileId,
int alpha,
int brightness)
|
protected void |
initTile(int categoryId,
int tileId,
java.lang.String dir,
java.lang.String name,
com.golden.gamedev.GameObject loader)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TileImageFactory
public TileImageFactory()
getInstance
public static TileImageFactory getInstance()
init
public void init(com.golden.gamedev.GameObject loader)
throws java.io.IOException
- Throws:
java.io.IOException
initCategory
protected void initCategory(int categoryId,
java.lang.String dir,
com.golden.gamedev.GameObject loader)
throws java.io.IOException
- Throws:
java.io.IOException
initTile
protected void initTile(int categoryId,
int tileId,
java.lang.String dir,
java.lang.String name,
com.golden.gamedev.GameObject loader)
initTile
protected void initTile(int categoryId,
int tileId,
int alpha,
int brightness)
getCategoryId
public int getCategoryId(java.lang.String category)
getTile
public java.awt.image.BufferedImage getTile(int categoryId,
int tileId)
getTile
public java.awt.image.BufferedImage getTile(int categoryId,
int tileId,
int alpha,
int brightness)
getRGB
public int[] getRGB(int categoryId,
int tileId)
Copyright © 2008. All Rights Reserved.