Class Sprite

java.lang.Object
   |
   +----Sprite

public class Sprite
extends Object

Variable Index

 o BA_BOUNCE
 o BA_DIE
 o BA_STOP
 o BA_WRAP
 o bounds
 o boundsAction
 o collision
 o component
 o frame
 o frameDelay
 o frameInc
 o frameTrigger
 o hidden
 o image
 o position
 o SA_ADDSPRITE
 o SA_KILL
 o SA_RESTOREPOS
 o velocity
 o zOrder

Constructor Index

 o Sprite(Component, Image, Point, Point, int, int)
 o Sprite(Component, Image[], int, int, int, Point, Point, int, int)

Method Index

 o addSprite(BitSet)
 o draw(Graphics)
 o getBounds()
 o getCollision()
 o getFrame()
 o getFrameInc()
 o getImage()
 o getPosition()
 o getVelocity()
 o getZOrder()
 o hide()
 o incFrame()
 o setBounds(Rectangle)
 o setCollision()
 o setFrameInc(int)
 o setImage(Image[])
 o setPosition(Point)
 o setVelocity(Point)
 o show()
 o testCollision(Sprite)
 o update()

Variables

 o SA_KILL
 public static final int SA_KILL
 o SA_RESTOREPOS
 public static final int SA_RESTOREPOS
 o SA_ADDSPRITE
 public static final int SA_ADDSPRITE
 o BA_STOP
 public static final int BA_STOP
 o BA_WRAP
 public static final int BA_WRAP
 o BA_BOUNCE
 public static final int BA_BOUNCE
 o BA_DIE
 public static final int BA_DIE
 o component
 protected Component component
 o image
 protected Image image[]
 o frame
 protected int frame
 o frameInc
 protected int frameInc
 o frameDelay
 protected int frameDelay
 o frameTrigger
 protected int frameTrigger
 o position
 protected Rectangle position
 o collision
 protected Rectangle collision
 o zOrder
 protected int zOrder
 o velocity
 protected Point velocity
 o bounds
 protected Rectangle bounds
 o boundsAction
 protected int boundsAction
 o hidden
 protected boolean hidden

Constructors

 o Sprite
 public Sprite(Component comp,
               Image img,
               Point pos,
               Point vel,
               int z,
               int ba)
 o Sprite
 public Sprite(Component comp,
               Image img[],
               int f,
               int fi,
               int fd,
               Point pos,
               Point vel,
               int z,
               int ba)

Methods

 o getImage
 public Image[] getImage()
 o setImage
 public void setImage(Image img[])
 o getFrameInc
 public int getFrameInc()
 o setFrameInc
 public void setFrameInc(int fi)
 o getFrame
 public int getFrame()
 o incFrame
 protected void incFrame()
 o getPosition
 public Rectangle getPosition()
 o setPosition
 public void setPosition(Point pos)
 o setCollision
 protected void setCollision()
 o getCollision
 protected Rectangle getCollision()
 o getZOrder
 public int getZOrder()
 o getVelocity
 public Point getVelocity()
 o setVelocity
 public void setVelocity(Point vel)
 o getBounds
 public Rectangle getBounds()
 o setBounds
 public void setBounds(Rectangle b)
 o show
 public void show()
 o hide
 public void hide()
 o update
 public BitSet update()
 o draw
 public void draw(Graphics g)
 o addSprite
 protected Sprite addSprite(BitSet action)
 o testCollision
 protected boolean testCollision(Sprite test)