|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShooterSprite
| 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 |
|---|
void specifyDrawing(java.awt.Graphics2D g)
specifyDrawing in interface Spritevoid moveUp()
void moveDown()
void moveLeft()
void moveRight()
void setInitialLocation()
ProjectileSprite fire()
void rotateRight()
void rotateLeft()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||