javax.microedition.lcdui.game
Class Sprite
java.lang.Object
javax.microedition.lcdui.game.Layer
javax.microedition.lcdui.game.Sprite
public class Sprite
- extends Layer
- Author:
- Andres Navarro
|
Method Summary |
boolean |
collidesWith(Image image,
int iX,
int iY,
boolean pixelLevel)
|
boolean |
collidesWith(Sprite otherSprite,
boolean pixelLevel)
|
boolean |
collidesWith(TiledLayer layer,
boolean pixelLevel)
|
void |
defineCollisionRectangle(int x,
int y,
int width,
int height)
|
void |
defineReferencePixel(int x,
int y)
|
int |
getFrame()
|
int |
getFrameSequenceLength()
|
int |
getRawFrameCount()
|
int |
getRefPixelX()
|
int |
getRefPixelY()
|
void |
nextFrame()
|
void |
paint(Graphics g)
|
void |
prevFrame()
|
void |
setFrame(int frame)
|
void |
setFrameSequence(int[] sequence)
|
void |
setImage(Image img,
int frameWidth,
int frameHeight)
|
void |
setRefPixelPosition(int x,
int y)
|
void |
setTransform(int transform)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRANS_NONE
public static final int TRANS_NONE
- See Also:
- Constant Field Values
TRANS_ROT90
public static final int TRANS_ROT90
- See Also:
- Constant Field Values
TRANS_ROT180
public static final int TRANS_ROT180
- See Also:
- Constant Field Values
TRANS_ROT270
public static final int TRANS_ROT270
- See Also:
- Constant Field Values
TRANS_MIRROR
public static final int TRANS_MIRROR
- See Also:
- Constant Field Values
TRANS_MIRROR_ROT90
public static final int TRANS_MIRROR_ROT90
- See Also:
- Constant Field Values
TRANS_MIRROR_ROT180
public static final int TRANS_MIRROR_ROT180
- See Also:
- Constant Field Values
TRANS_MIRROR_ROT270
public static final int TRANS_MIRROR_ROT270
- See Also:
- Constant Field Values
Sprite
public Sprite(Image img)
Sprite
public Sprite(Image img,
int frameWidth,
int frameHeight)
Sprite
public Sprite(Sprite otherSprite)
collidesWith
public final boolean collidesWith(Image image,
int iX,
int iY,
boolean pixelLevel)
collidesWith
public final boolean collidesWith(TiledLayer layer,
boolean pixelLevel)
collidesWith
public final boolean collidesWith(Sprite otherSprite,
boolean pixelLevel)
defineReferencePixel
public void defineReferencePixel(int x,
int y)
getRefPixelX
public int getRefPixelX()
getRefPixelY
public int getRefPixelY()
setRefPixelPosition
public void setRefPixelPosition(int x,
int y)
defineCollisionRectangle
public void defineCollisionRectangle(int x,
int y,
int width,
int height)
setFrameSequence
public void setFrameSequence(int[] sequence)
getFrame
public final int getFrame()
getFrameSequenceLength
public int getFrameSequenceLength()
setFrame
public void setFrame(int frame)
nextFrame
public void nextFrame()
prevFrame
public void prevFrame()
setImage
public void setImage(Image img,
int frameWidth,
int frameHeight)
paint
public final void paint(Graphics g)
- Specified by:
paint in class Layer
getRawFrameCount
public int getRawFrameCount()
setTransform
public void setTransform(int transform)
Copyright © 2001-2010 MicroEmulator Team. All Rights Reserved.