Package view.bubbles.playerBubbles
Class EmptyBubbleView
java.lang.Object
view.bubbles.BubbleView
view.bubbles.playerBubbles.PlayerBubbleView
view.bubbles.playerBubbles.EmptyBubbleView
- Direct Known Subclasses:
EnemyBubbleView
The EmptyBubbleView class represents the view for an
EmptyBubbleModel.
It handles drawing the empty bubble on the screen.-
Field Summary
Fields inherited from class view.bubbles.playerBubbles.PlayerBubbleView
previousModelStateFields inherited from class view.bubbles.BubbleView
animationIndex, animationReset, animationTick, bubbleModel, soundPlayed -
Constructor Summary
ConstructorsConstructorDescriptionEmptyBubbleView(BubbleModel bubbleModel) Constructs an EmptyBubbleView with the specified BubbleModel. -
Method Summary
Methods inherited from class view.bubbles.playerBubbles.PlayerBubbleView
updateMethods inherited from class view.bubbles.BubbleView
getBubbleModel, isActive, updateAnimationTick
-
Constructor Details
-
EmptyBubbleView
Constructs an EmptyBubbleView with the specified BubbleModel.- Parameters:
bubbleModel- the model for the bubble entity
-
-
Method Details
-
draw
Draws the empty bubble on the screen.- Specified by:
drawin classPlayerBubbleView- Parameters:
g- the Graphics object to draw with
-