From d1369a8fe035bb06dca5859312f50d7b3ba09b71 Mon Sep 17 00:00:00 2001
From: Corentin-Boulanger <boulanger.corentin98@gmail.com>
Date: Wed, 6 Nov 2019 19:10:15 +0100
Subject: [PATCH] added methods of client.IDataToCom

---
 .../common/interfaces/client/IDataToCom.java  | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/src/baleine/common/interfaces/client/IDataToCom.java b/src/baleine/common/interfaces/client/IDataToCom.java
index 6772287..8e8c9ea 100644
--- a/src/baleine/common/interfaces/client/IDataToCom.java
+++ b/src/baleine/common/interfaces/client/IDataToCom.java
@@ -1,5 +1,32 @@
 package baleine.common.interfaces.client;
 
+import java.net.InetAddress;
+import java.util.UUID;
+
+import com.sun.jmx.snmp.Timestamp;
+
+import baleine.common.dataModel.GameLight;
+import baleine.common.dataModel.Move;
+import baleine.common.dataModel.UserLight;
+
 public interface IDataToCom {
+	public void getPlayerByUUID(UUID playerRequested);
+
+	public void connectedUserOnline(UserLight user, InetAddress adress);
+
+	public void addNewGameAvailable(GameLight newGame);
+
+	public void requestGameSave(UUID gameId, UUID userId);
+
+	public void sendChatMessage(String message, Timestamp time);
+
+	public void sendDisconnectingRequest(UUID user);
+
+	public void addSpectator(GameLight game, UserLight spectator);
+
+	public void askJoinGame(UUID gameId, UUID userId);
+
+	public void sendJoinRequestAnswer(UUID userRequesting, UUID gameUUID, boolean isAccepted);
 
+	public void sendMove(Move move);
 }
-- 
GitLab