Class LightingProjectileView

java.lang.Object
view.projectiles.ProjectileView
view.projectiles.LightingProjectileView

public class LightingProjectileView extends ProjectileView
The LightingProjectileView class represents the view of the LightingProjectileModel class. It handles the drawing and animation of the lighting projectile.
  • Constructor Details

    • LightingProjectileView

      public LightingProjectileView(ProjectileModel projectileModel)
      Constructs a LightingProjectileView with the specified ProjectileModel.
      Parameters:
      projectileModel - the model of the projectile
  • Method Details

    • draw

      protected void draw(Graphics g)
      Draws the projectile on the screen.
      Specified by:
      draw in class ProjectileView
      Parameters:
      g - the Graphics object to draw the projectile
    • playSoundEffect

      protected void playSoundEffect()
      Plays the sound effect associated with the projectile.
      Specified by:
      playSoundEffect in class ProjectileView