-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathState.java
51 lines (43 loc) · 940 Bytes
/
State.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
/**
* Write a description of class States here.
*
* @author (your name)
* @version (a version number or a date)
*/
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
public class State
{
private String stateName;
private String capitalName;
private BufferedImage stateImage;
private boolean used;
public State(String sn, String cn, BufferedImage b)
{
stateName = sn;
capitalName = cn;
stateImage = b;
used = false;
}
public String getStateName()
{
return stateName;
}
public String getCapitalName()
{
return capitalName;
}
public BufferedImage getStateImage()
{
return stateImage;
}
//if question has already been used.
public void setStatusUsed(boolean s)
{
used = s;
}
public boolean getStatusUsed()
{
return used;
}
}