Class Sprite
java.lang.Object
org.rspeer.game.adapter.graphics.Sprite
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawScaledAt(BufferedImage image, int x, int y, int width, int height, int sClipX, int sClipY, int eClipX, int eClipY) static SpritefromBufferedImage(BufferedImage image) intgetFrame()intintgetId()intintintintint[]intgetWidth()void
-
Constructor Details
-
Sprite
public Sprite()
-
-
Method Details
-
normalize
public void normalize() -
getBufferedImage
-
drawScaledAt
public void drawScaledAt(BufferedImage image, int x, int y, int width, int height, int sClipX, int sClipY, int eClipX, int eClipY) -
getId
public int getId() -
getFrame
public int getFrame() -
getOffsetX
public int getOffsetX() -
getOffsetY
public int getOffsetY() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getPixels
public int[] getPixels() -
getMaxWidth
public int getMaxWidth() -
getMaxHeight
public int getMaxHeight() -
getRawImage
-
fromBufferedImage
-