From 40a0a0c0c5c3e0013dd2d8bf22d3bd498402afc7 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Thu, 3 Jun 2021 15:57:53 +0200 Subject: [PATCH] refactor: moved MessageType --- .../gamelibrary/json/MessageType.java | 20 ------------------- .../gamelibrary/messages/RequestMessage.java | 1 - .../marvelous/gamelibrary/json/JSONTest.java | 1 + 3 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 src/main/java/uulm/teamname/marvelous/gamelibrary/json/MessageType.java diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/MessageType.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/MessageType.java deleted file mode 100644 index cbadd4d..0000000 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/MessageType.java +++ /dev/null @@ -1,20 +0,0 @@ -package uulm.teamname.marvelous.gamelibrary.json; - -/** - * Enum describing all possible MessageTypes as defined by Standard document - */ -public enum MessageType { - HELLO_CLIENT, - HELLO_SERVER, - RECONNECT, - PLAYER_READY, - GAME_ASSIGNMENT, - GENERAL_ASSIGNMENT, - CHARACTER_SELECTION, - CONFIRM_SELECTION, - GAME_STRUCTURE, - REQUESTS, - EVENTS, - GOODBYE_CLIENT, - ERROR -} diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/RequestMessage.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/RequestMessage.java index 85e9700..477dcf4 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/RequestMessage.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/messages/RequestMessage.java @@ -1,7 +1,6 @@ package uulm.teamname.marvelous.gamelibrary.messages; import uulm.teamname.marvelous.gamelibrary.events.Event; -import uulm.teamname.marvelous.gamelibrary.json.MessageType; import uulm.teamname.marvelous.gamelibrary.requests.Request; import java.util.Arrays; diff --git a/src/test/java/uulm/teamname/marvelous/gamelibrary/json/JSONTest.java b/src/test/java/uulm/teamname/marvelous/gamelibrary/json/JSONTest.java index 5fef138..5e48d19 100644 --- a/src/test/java/uulm/teamname/marvelous/gamelibrary/json/JSONTest.java +++ b/src/test/java/uulm/teamname/marvelous/gamelibrary/json/JSONTest.java @@ -14,6 +14,7 @@ import uulm.teamname.marvelous.gamelibrary.events.Event; import uulm.teamname.marvelous.gamelibrary.events.EventBuilder; import uulm.teamname.marvelous.gamelibrary.events.EventType; import uulm.teamname.marvelous.gamelibrary.messages.EventMessage; +import uulm.teamname.marvelous.gamelibrary.messages.MessageType; import java.util.*;