forked from Group00000011/UwoSurvivorPool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContestant.java
More file actions
120 lines (108 loc) · 2.62 KB
/
Copy pathContestant.java
File metadata and controls
120 lines (108 loc) · 2.62 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/**
* Contestant class creates a contestant in the Survivor Pool
*
* @author Manor Freeman, Hazel Rivera, Martin Grabarczyk, Liam Corrigan, Jeff
* Westaway, Delerina Hill
*
*/
public class Contestant {
// Attributes
private String firstName;
private String lastName;
private String contID;
private String tribe;
private String picture;
private Round eliminationRound;
/**
* Constructor for objects of the class Contestant that initializes the
* contestant's first name, last name, tribe name, ID, and display picture
*
* @param first
* the first name of the Contestant
* @param last
* the last name of the Contestant
* @param contID
* the ID of the contestant
* @param tribe
* the tribe name of the contestant
* @param picture
* the display picture of the contestant
*/
public Contestant(String first, String last, String contID, String tribe,
String picture) {
this.firstName=first;
this.lastName=last;
this.contID=contID;
this.tribe=tribe;
this.picture=picture;
this.eliminationRound=null;
}
// Accessor methods
/**
* Gets the Contestant's first name
*
* @return the first name of the contestant
*/
public String getFirst() {
return this.firstName;
}
/**
* Gets the Contestant's last name
*
* @return the last name of the contestant
*/
public String getLast() {
return this.lastName;
}
/**
* Gets the Contestant's ID
*
* @return the ID of the contestant
*/
public String getID() {
return this.contID;
}
/**
* Gets the Contestant's tribe name
*
* @return the tribe of the contestant
*/
public String getTribe() {
return this.tribe;
}
/**
* Gets the Contestant's display picture
*
* @return the pathname of contestant's display picture
*/
public String getPicture() {
return this.picture;
}
/**
* Gets the round that the contestant was eliminated
*
* @return the round that the contestant was eliminated, if contestant has not been eliminated returns null
*/
public Round getElimRound() {
return this.eliminationRound;
}
// Mutator methods
/**
* Sets the contestant's tribe
*
* @param tribe
* the tribe of the contestant
*/
public void setTribe(String tribe) {
this.tribe=tribe;
}
/**
* Sets the round that the contestant was eliminated
*
* @param elimRound
* the round that the contestant was eliminated
*/
public void setElimRound(Round elimRound) {
this.eliminationRound=elimRound;
}
}