Package ch.epfl.cs107.play.engine.actor
Class Background
java.lang.Object
ch.epfl.cs107.play.engine.actor.Entity
ch.epfl.cs107.play.engine.actor.Background
- All Implemented Interfaces:
Acoustics,Actor,Graphics,Updatable,Positionable
-
Constructor Summary
ConstructorsConstructorDescriptionBackground(Area area) Default Background Constructor by default the Background image is using the area title as file nameBackground(Area area, RegionOfInterest region) Extended Background Constructor by default the Background image is using the area title as file nameBackground(Area area, RegionOfInterest region, String name) Extended Background ConstructorBackground(Area area, String title) Default Background Constructor by default the Background image is using the area title as file nameBackground(String name, int width, int height, RegionOfInterest region) Alternative Background Constructor -
Method Summary
Methods inherited from class ch.epfl.cs107.play.engine.actor.Entity
getPosition, getTransform, getVelocity, setCurrentPosition
-
Constructor Details
-
Background
Default Background Constructor by default the Background image is using the area title as file name- Parameters:
area- (Area): ownerArea. Not null
-
Background
Default Background Constructor by default the Background image is using the area title as file name- Parameters:
area- (Area): ownerArea. Not null
-
Background
Extended Background Constructor by default the Background image is using the area title as file name- Parameters:
area- (Area): ownerArea. Not nullregion- (RegionOfInterest): region of interest in the image for the background, may be null
-
Background
Extended Background Constructor- Parameters:
area- (Area): ownerArea. Not nullregion- (RegionOfInterest): region of interest in the image for the background, may be nullname- (String): Background file name (i.e only the name, with neither path, nor file extension). Not null
-
Background
Alternative Background Constructor- Parameters:
name- (String): Background file name (i.e only the name, with neither path, nor file extension). Not nullwidth- (int): of the desired backgroundheight- (int): of the desired backgroundregion- (RegionOfInterest): region of interest in the image for the background. May be null
-
-
Method Details
-
draw
Description copied from interface:GraphicsRenders itself on specified canvas.- Parameters:
canvas- target, not null
-