|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Weapon
Every game object that can shoot contains a weapon of some kind implementing this interface.
ShooterObject| Method Summary | |
|---|---|
boolean |
isShoot()
Called by the game control (via the game object) in each frame. |
void |
setShoot(boolean shoot)
Normally this method is called by the game object in each frame. |
void |
update(long elapsedTime)
Must be called by the game object for each frame, since weapon implementations may have internal timers of some kind. |
| Method Detail |
|---|
void update(long elapsedTime)
boolean isShoot()
void setShoot(boolean shoot)
shoot - true if the "fire button is pressed", else false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||