Class MaitaFireProjectileView

java.lang.Object
view.projectiles.ProjectileView
view.projectiles.MaitaFireProjectileView

public class MaitaFireProjectileView extends ProjectileView
The MaitaFireProjectileView class represents the view of the MaitaFireProjectileModel class. It handles the drawing and animation of the fire projectile.
  • Constructor Details

    • MaitaFireProjectileView

      public MaitaFireProjectileView(ProjectileModel projectileModel)
      Constructs a MaitaFireProjectileView 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