refactor: moved MessageType

This commit is contained in:
Yannik Bretschneider 2021-06-03 15:57:53 +02:00
parent fa8d8fcd00
commit 40a0a0c0c5
3 changed files with 1 additions and 21 deletions

View File

@ -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
}

View File

@ -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;

View File

@ -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.*;