From 71807d6c363b18c4c833c9f1b1c3a225b55ec4c3 Mon Sep 17 00:00:00 2001 From: charlesbvll Date: Mon, 30 Sep 2019 12:57:46 +0200 Subject: [PATCH] Create JassCommand.java --- net/JassCommand.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 net/JassCommand.java diff --git a/net/JassCommand.java b/net/JassCommand.java new file mode 100644 index 0000000..bcd347d --- /dev/null +++ b/net/JassCommand.java @@ -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; + } +}