gameComponents_LT3
Interface Sprite

All Known Subinterfaces:
ShooterSprite
All Known Implementing Classes:
BasicTriangleShooter, DoggyShooter, ProjectileSprite, ScoreTallySprite, TargetSprite

public interface Sprite


Method Summary
 java.awt.geom.Rectangle2D getBounds2D()
          This method returns a rectangular box that completely encloses this sprite.
 void specifyDrawing(java.awt.Graphics2D g)
          This method takes the passed Graphics2D object and specifies how this sprite should be drawn on it.
 

Method Detail

specifyDrawing

void specifyDrawing(java.awt.Graphics2D g)
This method takes the passed Graphics2D object and specifies how this sprite should be drawn on it.


getBounds2D

java.awt.geom.Rectangle2D getBounds2D()
This method returns a rectangular box that completely encloses this sprite. The bounding box can be assumed to be the smallest bounding box that is possible.

Returns:
as described above