moagg.artwork.object
Class PlatformImageFactory

java.lang.Object
  extended by moagg.artwork.object.AbstractImageFactory
      extended by moagg.artwork.object.PlatformImageFactory

public class PlatformImageFactory
extends AbstractImageFactory


Field Summary
 
Fields inherited from class moagg.artwork.object.AbstractImageFactory
EXT
 
Constructor Summary
PlatformImageFactory()
           
 
Method Summary
 java.awt.image.BufferedImage[] getImages(PlatformEdge leftEdge, PlatformEdge rightEdge, int size)
           
static PlatformImageFactory getInstance()
           
 int getPlatformHeight()
           
 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.
 void init(com.golden.gamedev.GameObject loader)
           
protected  void initPlatformHeight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformImageFactory

public PlatformImageFactory()
Method Detail

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.