/src/net/fhmp/cludos/components/Suspect.java
Java | 50 lines | 33 code | 13 blank | 4 comment | 0 complexity | ae16c1713f8b90e07f997106d6d38c14 MD5 | raw file
1package net.fhmp.cludos.components;
2
3import java.awt.Color;
4import net.fhmp.Board;
5import net.fhmp.Colors;
6import net.fhmp.Location;
7
8/**
9 *
10 * @author Rudi Theunissen
11 */
12public enum Suspect implements Card{
13
14 SCARLET(Colors.SCARLET, "Kasandra Scarlet"),
15 MUSTARD(Colors.MUSTARD, "Jack Mustard"),
16 WHITE( Colors.WHITE, "Diane White"),
17 GREEN( Colors.GREEN, "Jacob Green"),
18 PEACOCK(Colors.PEACOCK, "Eleanor Peacock"),
19 PLUM( Colors.PLUM, "Victor Plum");
20
21 private final Color color;
22 private final String name;
23
24 private Location startingLocation;
25
26 private Suspect(Color color, String name) {
27 this.color = color;
28 this.name = name;
29 }
30
31 public Color getColor(){
32 return color;
33 }
34
35 public Location getStartingLocation() {
36 return startingLocation;
37 }
38
39 public void setStartingLocation(Location startLocation) {
40 this.startingLocation = startLocation;
41 }
42
43
44
45 @Override
46 public String toString() {
47 return name;
48 }
49
50}