forked from justinszaro/WarringNations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPeopleType.java
More file actions
executable file
·40 lines (35 loc) · 869 Bytes
/
PeopleType.java
File metadata and controls
executable file
·40 lines (35 loc) · 869 Bytes
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
/**
* This class sets the description for an instantiated Person in the People class based on its type.
* The class also includes the getter for a Person's description.
*
* @author Max Schuman, Elizabeth Vicente, Tanishq Iyer, Justin Szaro
* @version 3.0
* @since 2021-04-11
*/
public enum PeopleType
{
wizard ("wizard"),
warrior ("warrior"),
cleric ("Healer"),
angel ("Angel"),
reaper ("Death"),
TheFlash("The Flash"),
curse ("Curse");
private final String description;
/**
*Sets the description of the Person to its type.
* @param types The type of Person.
*/
PeopleType (String types)
{
description = types;
}
/**
* Returns the Players established description.
* @return description
*/
public String getDescription()
{
return description;
}
}