Class PauseMenu
java.lang.Object
ch.epfl.cs107.play.engine.PauseMenu
- Direct Known Subclasses:
AreaPauseMenu
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbegin(Window window, FileSystem fileSystem) PauseMenu implements PlayablevoidPauseMenu Implements Acousticsprotected abstract voidDraw the entire menu (background, texts, etc.)voidend()Cleans up things, called even if initialisation failed.protected Keyboardprotected PauseMenu.PausablegetOwner()getTitle()Getter for game title Note: Need to be OverridevoidsetOwner(PauseMenu.Pausable owner) Set the owner Pausablevoidupdate(float deltaTime) Simulates a single time step.
-
Field Details
-
CAMERA_SCALE_FACTOR
protected static final float CAMERA_SCALE_FACTOR- See Also:
-
-
Constructor Details
-
PauseMenu
public PauseMenu()
-
-
Method Details
-
drawMenu
Draw the entire menu (background, texts, etc.)- Parameters:
c- (Canvas): the context canvas : here the Window
-
getKeyboard
- Returns:
- (Keyboard): the Window Keyboard for inputs
-
getOwner
- Returns:
- (Pausable): the owner which starts this pause
-
setOwner
Set the owner Pausable- Parameters:
owner- (Pausable): the owner which starts this pause. Not null
-
bip
-
begin
PauseMenu implements Playable -
update
-
end
-
getTitle
-