-
Notifications
You must be signed in to change notification settings - Fork 0
/
Skin.java
57 lines (45 loc) · 1.16 KB
/
Skin.java
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
import java.awt.image.BufferedImage;
public class Skin {
private int skinId; //WE NEED SKIN ID TO SEARCH IN THE ARRAY
private int starsNeeded;
private BufferedImage carSkin;
private boolean available;
public Skin(int skinId, int starsNeeded, BufferedImage carSkin, boolean available)
{
this.skinId = skinId;
this.starsNeeded = starsNeeded;
this.carSkin = carSkin;
this.available = available;
}
public Skin(int skinId, BufferedImage carSkin, boolean available)
{
this.skinId = skinId;
this.starsNeeded = starsNeeded;
this.carSkin = carSkin;
this.available = available;
}
public int getSkinId() {
return skinId;
}
public void setSkinId(int skinId) {
this.skinId = skinId;
}
public int getStarsNeeded() {
return starsNeeded;
}
public void setStarsNeeded(int starsNeeded) {
this.starsNeeded = starsNeeded;
}
public BufferedImage getCarSkin() {
return carSkin;
}
public void setCarSkin(BufferedImage carSkin) {
this.carSkin = carSkin;
}
public boolean isAvailable() {
return available;
}
public void setAvailable(boolean available) {
this.available = available;
}
}