Package view.projectiles
Class LightingProjectileView
java.lang.Object
view.projectiles.ProjectileView
view.projectiles.LightingProjectileView
The LightingProjectileView class represents the view of the
LightingProjectileModel class.
It handles the drawing and animation of the lighting projectile.-
Field Summary
Fields inherited from class view.projectiles.ProjectileView
animationIndex, animationTick, projectileManagerView, projectileModel -
Constructor Summary
ConstructorsConstructorDescriptionLightingProjectileView(ProjectileModel projectileModel) Constructs a LightingProjectileView with the specified ProjectileModel. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDraws the projectile on the screen.protected voidPlays the sound effect associated with the projectile.Methods inherited from class view.projectiles.ProjectileView
getAnimation, getSpriteAmount, isActive, update, updateAnimationTick
-
Constructor Details
-
LightingProjectileView
Constructs a LightingProjectileView with the specified ProjectileModel.- Parameters:
projectileModel- the model of the projectile
-
-
Method Details
-
draw
Draws the projectile on the screen.- Specified by:
drawin classProjectileView- Parameters:
g- the Graphics object to draw the projectile
-
playSoundEffect
protected void playSoundEffect()Plays the sound effect associated with the projectile.- Specified by:
playSoundEffectin classProjectileView
-