-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPicture.java
More file actions
60 lines (58 loc) · 1.46 KB
/
Picture.java
File metadata and controls
60 lines (58 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* Partner 1 Name: Evelyn Bailey
* Partner 1 Pennkey: ebail
* Partner 1 Recitation #: 215
*
* Partner 2 Name: Stephen Eyerly
* Partner 2 Pennkey: seyerly
* Partner 2 Recitation #: 216
*
* This class holds the main method for the game of missile defender. It also
* contains a method which sets up and stores the background of the game in
* a linked list.
*/
public class Picture {
private double x;
private double y;
private String filename;
private int width;
private int height;
private boolean isDeleted = false;
/*
* Name: Picture
* Description: constructor for the Picture object to contain background
* images
* Inputs: double xPosition, double yPosition, String imagename, int width,
* int height
* height
* Outputs: -
*/
public Picture (double x, double y, String filename, int width, int height) {
this.x = x;
this.y = y;
this.filename = filename;
this.width = width;
this.height = height;
}
public double x() {
return x;
}
public double y() {
return y;
}
public String filename() {
return filename;
}
public boolean isDeleted() {
return isDeleted;
}
public void setDeletion(boolean b) {
isDeleted = b;
}
public int width(){
return width;
}
public int height(){
return height;
}
}