Class Sprite
java.lang.Object
|
+----Sprite
- public class Sprite
- extends Object
-
BA_BOUNCE
-
-
BA_DIE
-
-
BA_STOP
-
-
BA_WRAP
-
-
bounds
-
-
boundsAction
-
-
collision
-
-
component
-
-
frame
-
-
frameDelay
-
-
frameInc
-
-
frameTrigger
-
-
hidden
-
-
image
-
-
position
-
-
SA_ADDSPRITE
-
-
SA_KILL
-
-
SA_RESTOREPOS
-
-
velocity
-
-
zOrder
-
-
Sprite(Component, Image, Point, Point, int, int)
-
-
Sprite(Component, Image[], int, int, int, Point, Point, int, int)
-
-
addSprite(BitSet)
-
-
draw(Graphics)
-
-
getBounds()
-
-
getCollision()
-
-
getFrame()
-
-
getFrameInc()
-
-
getImage()
-
-
getPosition()
-
-
getVelocity()
-
-
getZOrder()
-
-
hide()
-
-
incFrame()
-
-
setBounds(Rectangle)
-
-
setCollision()
-
-
setFrameInc(int)
-
-
setImage(Image[])
-
-
setPosition(Point)
-
-
setVelocity(Point)
-
-
show()
-
-
testCollision(Sprite)
-
-
update()
-
SA_KILL
public static final int SA_KILL
SA_RESTOREPOS
public static final int SA_RESTOREPOS
SA_ADDSPRITE
public static final int SA_ADDSPRITE
BA_STOP
public static final int BA_STOP
BA_WRAP
public static final int BA_WRAP
BA_BOUNCE
public static final int BA_BOUNCE
BA_DIE
public static final int BA_DIE
component
protected Component component
image
protected Image image[]
frame
protected int frame
frameInc
protected int frameInc
frameDelay
protected int frameDelay
frameTrigger
protected int frameTrigger
position
protected Rectangle position
collision
protected Rectangle collision
zOrder
protected int zOrder
velocity
protected Point velocity
bounds
protected Rectangle bounds
boundsAction
protected int boundsAction
hidden
protected boolean hidden
Sprite
public Sprite(Component comp,
Image img,
Point pos,
Point vel,
int z,
int ba)
Sprite
public Sprite(Component comp,
Image img[],
int f,
int fi,
int fd,
Point pos,
Point vel,
int z,
int ba)
getImage
public Image[] getImage()
setImage
public void setImage(Image img[])
getFrameInc
public int getFrameInc()
setFrameInc
public void setFrameInc(int fi)
getFrame
public int getFrame()
incFrame
protected void incFrame()
getPosition
public Rectangle getPosition()
setPosition
public void setPosition(Point pos)
setCollision
protected void setCollision()
getCollision
protected Rectangle getCollision()
getZOrder
public int getZOrder()
getVelocity
public Point getVelocity()
setVelocity
public void setVelocity(Point vel)
getBounds
public Rectangle getBounds()
setBounds
public void setBounds(Rectangle b)
show
public void show()
hide
public void hide()
update
public BitSet update()
draw
public void draw(Graphics g)
addSprite
protected Sprite addSprite(BitSet action)
testCollision
protected boolean testCollision(Sprite test)