Package view.bubbles.specialBubbles
Class WaterBubbleView
java.lang.Object
view.bubbles.BubbleView
view.bubbles.specialBubbles.WaterBubbleView
The WaterBubbleView class represents the view for a
WaterBubbleModel.
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
ConstructorsConstructorDescriptionWaterBubbleView(BubbleModel bubbleModel) Constructs a WaterBubbleView with the specified BubbleModel. -
Method Summary
Methods inherited from class view.bubbles.BubbleView
getBubbleModel, isActive, updateAnimationTick
-
Constructor Details
-
WaterBubbleView
Constructs a WaterBubbleView 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 water bubble on the screen.- Specified by:
drawin classBubbleView- Parameters:
g- the Graphics object to draw with
-