moagg.artwork.object
Class PlatformImageFactory
java.lang.Object
moagg.artwork.object.AbstractImageFactory
moagg.artwork.object.PlatformImageFactory
public class PlatformImageFactory
- extends AbstractImageFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlatformImageFactory
public PlatformImageFactory()
getInstance
public static PlatformImageFactory getInstance()
init
public void init(com.golden.gamedev.GameObject loader)
- Specified by:
init
in class AbstractImageFactory
initPlatformHeight
protected void initPlatformHeight()
getImages
public java.awt.image.BufferedImage[] getImages(PlatformEdge leftEdge,
PlatformEdge rightEdge,
int size)
getRGB
public int[][] getRGB(PlatformEdge leftEdge,
PlatformEdge rightEdge,
int size)
- This method is part of a workaround for the big performance-decrease on Linux
for the collision detection between ship/platform.
getPlatformHeight
public int getPlatformHeight()
Copyright © 2008. All Rights Reserved.