public interface Shooter extends GameObject
Modifier and Type | Method and Description |
---|---|
void |
shoot()
This method is responisble for firing bullets.
|
boolean |
timeToShoot()
This method checks if it's time for the shooter to shoot or if it's still cooling down.
|
draw, getCenter, getDirection, getHealthPoints, getHeight, getImage, getPosition, getWidth, getXCenter, getXDirection, getXPosition, getXVelocity, getYCenter, getYDirection, getYPosition, getYVelocity, gotHit, initializeLocation, isDead, makeDead, move, moveDirection, movePosition, setDirection, setDirectionToward, setHealthPoints, setImage, setImageLocation, setPosition, setXDirection, setXPosition, setXVelocity, setYDirection, setYPosition, setYVelocity
void shoot()
boolean timeToShoot()