Package view.entities

Class EnemyManagerView

java.lang.Object
view.entities.EnemyManagerView

public class EnemyManagerView extends Object
The EnemyManagerView class manages the view for all enemy entities in the game. It handles loading enemy sprites, updating enemy views, and drawing enemies on the screen.
  • Method Details

    • getInstance

      public static EnemyManagerView getInstance()
      Returns the singleton instance of EnemyManagerView.
      Returns:
      the singleton instance of EnemyManagerView
    • update

      public void update()
      Updates all active enemy views.
    • draw

      public void draw(Graphics g)
      Draws all active enemy views on the screen.
      Parameters:
      g - the Graphics object to draw with
    • newLevelReset

      public void newLevelReset()
      Resets the enemy views for a new level.
    • newPlayReset

      public void newPlayReset()
      Resets the enemy views for a new play session.
    • getEnemySprite

      public BufferedImage[][] getEnemySprite(Constants.EnemyConstants.EnemyType enemyType)
      Returns the sprite array for the specified enemy type.
      Parameters:
      enemyType - the type of the enemy
      Returns:
      the sprite array for the specified enemy type