Package view.projectiles
Class ProjectileManagerView
java.lang.Object
view.projectiles.ProjectileManagerView
The ProjectileManagerView class is responsible for managing
ProjectileViews.
It handles loading sprites, updating, and drawing projectile views.-
Method Summary
Modifier and TypeMethodDescriptionvoidDraws all active projectile views.static ProjectileManagerViewReturns the singleton instance of the ProjectileManagerView.BufferedImage[][]Returns the sprites for the specified projectile type.voidResets the projectile views for a new level.voidResets the projectile views for a new play session.voidupdate()Updates the animation state of all active projectile views.
-
Method Details
-
getInstance
Returns the singleton instance of the ProjectileManagerView.- Returns:
- the singleton instance
-
update
public void update()Updates the animation state of all active projectile views. -
draw
Draws all active projectile views.- Parameters:
g- the Graphics object to draw with
-
newLevelReset
public void newLevelReset()Resets the projectile views for a new level. -
newPlayReset
public void newPlayReset()Resets the projectile views for a new play session. -
getSprites
Returns the sprites for the specified projectile type.- Parameters:
type- the type of the projectile- Returns:
- the sprites for the specified projectile type
-