-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSignedUpUser.java
47 lines (36 loc) · 1 KB
/
SignedUpUser.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
package org.haderlie.claire.dundrag;
/*
* Class: SignedUpUser
* Purpose; signed up user contains the information on a character
* and user to properly display who is signed up for an adventure.
* it does not contain sensitive information from the user class
* such as username or password info
*/
public class SignedUpUser {
private Character player;
private String firstName;
private String lastName;
SignedUpUser(User user, Character character) {
firstName = user.getFirstName();
lastName = user.getLastName();
player = character;
}
public void setPlayer(Character character){
player = character;
}
public void setFirstName(String name){
firstName = name;
}
public void setLastName(String name){
lastName = name;
}
public Character getPlayer() {
return player;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
}