Class ProjectileManagerView

java.lang.Object
view.projectiles.ProjectileManagerView

public class ProjectileManagerView extends Object
The ProjectileManagerView class is responsible for managing ProjectileViews. It handles loading sprites, updating, and drawing projectile views.
  • Method Details

    • getInstance

      public static ProjectileManagerView 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

      public void draw(Graphics g)
      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