Create JassCommand.java
This commit is contained in:
parent
c24b9f3d28
commit
71807d6c36
28
net/JassCommand.java
Normal file
28
net/JassCommand.java
Normal file
@ -0,0 +1,28 @@
|
||||
package ch.epfl.javass.net;
|
||||
|
||||
/**
|
||||
* Enumeration of the different commands for the client-server communication.
|
||||
* @author Charles BEAUVILLE
|
||||
* @author Celia HOUSSIAUX
|
||||
*
|
||||
*/
|
||||
public enum JassCommand {
|
||||
PLRS("PLRS"),
|
||||
TRMP("TRMP"),
|
||||
HAND("HAND"),
|
||||
TRCK("TRCK"),
|
||||
CARD("CARD"),
|
||||
SCOR("SCOR"),
|
||||
WINR("WINR");
|
||||
|
||||
private String name;
|
||||
|
||||
private JassCommand(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user