|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.ui.Sprite
danger.ui.BitmapSprite
public class BitmapSprite
A BitmapSprite manages a moving Bitmap. You can use it for certain forms of animation. It keeps track of the location of the sprite.
| Constructor Summary | |
|---|---|
BitmapSprite()
Construct an instance of BitmapSprite. |
|
BitmapSprite(Bitmap inBitmap)
Construct an instance of BitmapSprite with the specified Bitmap. |
|
| Method Summary | |
|---|---|
void |
paint(Pen inPen)
Paint the sprite at the current location. |
void |
setBitmap(Bitmap inBitmap)
Set the bitmap for the sprite. |
| Methods inherited from class danger.ui.Sprite |
|---|
advance, getPosition, getPosition, setHotSpot, setHotSpot, setPosition, setPosition, setVelocity, setVelocity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitmapSprite()
setBitmap(danger.ui.Bitmap) to set the Bitmap for the sprite.
public BitmapSprite(Bitmap inBitmap)
Bitmap.
| Method Detail |
|---|
public void setBitmap(Bitmap inBitmap)
Sprite.setHotSpot(danger.ui.Point)public void paint(Pen inPen)
Sprite
paint in class Sprite
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||