|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.wistrand.midlet.sprite.Sprite | +--com.wistrand.midlet.sprite.MultiSprite
Field Summary | |
protected java.util.Vector |
sprites
|
Fields inherited from class com.wistrand.midlet.sprite.Sprite |
col, dx, dy, id, idCount, parent, px, py, rot, size, x, y |
Constructor Summary | |
MultiSprite()
|
Method Summary | |
void |
add(Sprite s)
|
void |
paint(javax.microedition.lcdui.Graphics g)
Paint the sprite on a Graphics. |
void |
remove(Sprite s)
|
void |
update()
Update position by adding speed to current pos. |
Methods inherited from class com.wistrand.midlet.sprite.Sprite |
moveTo, setColor, setParent, setSpeed, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Vector sprites
Constructor Detail |
public MultiSprite()
Method Detail |
public void add(Sprite s)
add
in interface SpriteHandler
public void remove(Sprite s)
remove
in interface SpriteHandler
public void paint(javax.microedition.lcdui.Graphics g)
Sprite
paint
in class Sprite
public void update()
Sprite
update
in class Sprite
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |