simulation_MVC_Basic
Interface Sprite

All Known Implementing Classes:
ProjectileSprite, ScoreTallySprite, ShapeSprite, ShooterSprite

public interface Sprite


Method Summary
 void draw(java.awt.Graphics2D g)
          This method takes the passed Graphics2D object and specifies how this sprite should be drawn on it.
 java.awt.geom.Rectangle2D getBounds2D()
          This method returns a rectangular box that completely encloses this sprite.
 int getPointsValue()
          Returns the points value that is associated with hitting this sprite with a projectile
 

Method Detail

draw

void draw(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

getPointsValue

int getPointsValue()
Returns the points value that is associated with hitting this sprite with a projectile

Returns:
as described above