Package view.gameStates
Class HomeView
java.lang.Object
view.gameStates.HomeView
The HomeView class represents the view for the home screen of the game.
It handles loading and drawing the game logo, updating the positions of elements, and displaying the start prompt.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDraws the home screen elements, including the logo and bubbles.booleanChecks if the logo is in its final position.voidUpdates the positions of the logo and bubbles.
-
Constructor Details
-
HomeView
public HomeView()Constructs a HomeView.
-
-
Method Details
-
updatePositions
public void updatePositions()Updates the positions of the logo and bubbles. Moves the logo to its final position if it is not already there. -
draw
Draws the home screen elements, including the logo and bubbles. Displays the start prompt when the logo is in position.- Parameters:
g- the Graphics object to draw with
-
IsLogoInPosition
public boolean IsLogoInPosition()Checks if the logo is in its final position.- Returns:
- true if the logo is in position, false otherwise
-