gameComponents
Interface ShooterSprite

All Superinterfaces:
Sprite
All Known Implementing Classes:
BasicTriangleShooter, FroggyShooter

public interface ShooterSprite
extends Sprite


Method Summary
 ProjectileSprite fire()
          Method creates a ProjectileSprite located at tip of this shooter.
 void moveDown()
          Move this sprite down one "vertical unit" (the size of this unit is determined by a class attribute).
 void moveLeft()
          Move this sprite left one "horizontal unit" (the size of this unit is determined by a class attribute).
 void moveRight()
          Move this sprite right one "horizontal unit" (the size of this unit is determined by a class attribute).
 void moveUp()
          Move this sprite up one "vertical unit" (the size of this unit is determined by a class attribute).
 void rotateLeft()
           
 void rotateRight()
           
 void setInitialLocation()
          Position this sprite in the initial location.
 void specifyDrawing(java.awt.Graphics2D g)
          This method takes the passed Graphics2D object and specifies how this sprite should be drawn on it.
 
Methods inherited from interface gameComponents.Sprite
getBounds2D
 

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.

Specified by:
specifyDrawing in interface Sprite

moveUp

void moveUp()
Move this sprite up one "vertical unit" (the size of this unit is determined by a class attribute).


moveDown

void moveDown()
Move this sprite down one "vertical unit" (the size of this unit is determined by a class attribute).


moveLeft

void moveLeft()
Move this sprite left one "horizontal unit" (the size of this unit is determined by a class attribute).


moveRight

void moveRight()
Move this sprite right one "horizontal unit" (the size of this unit is determined by a class attribute).


setInitialLocation

void setInitialLocation()
Position this sprite in the initial location.


fire

ProjectileSprite fire()
Method creates a ProjectileSprite located at tip of this shooter.


rotateRight

void rotateRight()

rotateLeft

void rotateLeft()