Package ch.epfl.cs107.play.engine
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) Initialises game state : display and controls Note: Need to be OverridevoidPlay itself on specified Audio context.protected 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
Description copied from interface:AcousticsPlay itself on specified Audio context. -
begin
Description copied from interface:PlayableInitialises game state : display and controls Note: Need to be Override -
update
public void update(float deltaTime) Description copied from interface:UpdatableSimulates a single time step. Note: Need to be Override -
end
public void end()Description copied from interface:PlayableCleans up things, called even if initialisation failed. Note: Need to be Override -
getTitle
Description copied from interface:PlayableGetter for game title Note: Need to be Override
-