Package view.bubbles.specialBubbles
Class LightningBubbleView
java.lang.Object
view.bubbles.BubbleView
view.bubbles.specialBubbles.LightningBubbleView
The LightningBubbleView class represents the view for a
LightningBubbleModel.
It handles updating the bubble's animation and drawing the bubble on the screen.-
Field Summary
Fields inherited from class view.bubbles.BubbleView
animationIndex, animationReset, animationTick, bubbleModel, soundPlayed -
Constructor Summary
ConstructorsConstructorDescriptionLightningBubbleView(BubbleModel bubbleModel) Constructs a LightningBubbleView with the specified BubbleModel. -
Method Summary
Methods inherited from class view.bubbles.BubbleView
getBubbleModel, isActive, updateAnimationTick
-
Constructor Details
-
LightningBubbleView
Constructs a LightningBubbleView with the specified BubbleModel.- Parameters:
bubbleModel- the model for the bubble entity
-
-
Method Details
-
update
public void update()Updates the bubble's animation state.- Specified by:
updatein classBubbleView
-
draw
Draws the lightning bubble on the screen.- Specified by:
drawin classBubbleView- Parameters:
g- the Graphics object to draw with
-