Package view.gameStates
Class LevelTransitionView
java.lang.Object
view.gameStates.LevelTransitionView
The LevelTransitionView class represents the view for the
LevelTransitionModel.
It handles drawing the new and old levels, as well as the player animation during the transition.-
Constructor Summary
ConstructorsConstructorDescriptionLevelTransitionView(LevelTransitionModel levelTransitionModel) Constructs a LevelTransitionView with the specified LevelTransitionModel. -
Method Summary
Modifier and TypeMethodDescriptionvoidDraws the level transition screen elements, including the new and old levels and the player animation.voidUpdates the player animation by incrementing the animation tick and index.
-
Constructor Details
-
LevelTransitionView
Constructs a LevelTransitionView with the specified LevelTransitionModel.- Parameters:
levelTransitionModel- the model for the level transition screen
-
-
Method Details
-
draw
Draws the level transition screen elements, including the new and old levels and the player animation.- Parameters:
g- the Graphics object to draw with
-
updatePlayerAnimation
public void updatePlayerAnimation()Updates the player animation by incrementing the animation tick and index.
-