diff --git a/src/client/Client.java b/src/client/Client.java index df3c80670c03fd12276ee1503a18a0d7e2a36cf8..3edda911f8e581fa2eb7d576173e811ce6bb7abf 100644 --- a/src/client/Client.java +++ b/src/client/Client.java @@ -20,15 +20,13 @@ public class Client private Registry registryServer; private IChatController chatController; private IClientController clientController; - private IDrawingController drawingController; private ClientUpdate clientUpdate; - private ChatUpdate chatUpdate; private DrawingUpdate drawingUpdate; - private StartScreen startScreen; + private StartScreen startScreen; private ChatScreen chatScreen; private PaintGUI paintGUI; @@ -41,12 +39,6 @@ public class Client public ChatScreen getChatScreen() { return chatScreen; } - public void setConnectedUsers(String[] users) - { - this.connectedUsers = users; - } - - public IChatController getChatController() { return chatController; @@ -103,22 +95,6 @@ public class Client } } -// public void doSomething() -// { -//// new ChatScreen(); -// -// try -// { -// new ChatScreen(this); -// System.out.println("Sleeping..."); -// TimeUnit.MINUTES.sleep(5); -// } -// catch(Exception e) -// { -// e.printStackTrace(); -// } -// } - public boolean connect() { try @@ -143,14 +119,4 @@ public class Client return false; } - - public String getReceivedMessage() - { - return receivedMessage; - } - - public void setReceivedMessage(String receivedMessage) - { - this.receivedMessage = receivedMessage; - } } \ No newline at end of file diff --git a/src/server/ClientController.java b/src/server/ClientController.java index bcfd261f7da172aca929a6a4f291b39c277fb2b1..5e7638f48e3e3307b6929a968b425e40722575a2 100644 --- a/src/server/ClientController.java +++ b/src/server/ClientController.java @@ -1,9 +1,9 @@ package server; import remote.IChatUpdate; -import remote.IClientController; import remote.IClientUpdate; import remote.IDrawingUpdate; +import remote.IClientController; import java.io.Serializable; import java.rmi.Remote; diff --git a/src/server/User.java b/src/server/User.java index a79c8c6bb8c7f34404bd940feedbee095f699ad5..543f26e6c9056a69b382ae8dc4819d4116e95559 100644 --- a/src/server/User.java +++ b/src/server/User.java @@ -7,11 +7,10 @@ import remote.IDrawingUpdate; public class User { private String username; - private remote.IChatUpdate IChatUpdate; - private remote.IDrawingUpdate IDrawingUpdate; - private remote.IClientUpdate IClientUpdate; + private IChatUpdate IChatUpdate; + private IDrawingUpdate IDrawingUpdate; + private IClientUpdate IClientUpdate; private boolean isAdmin; - public User(String username, remote.IChatUpdate IChatUpdate, remote.IClientUpdate IClientUpdate, remote.IDrawingUpdate IDrawingUpdate) public User(String username, IChatUpdate IChatUpdate, IClientUpdate IClientUpdate, IDrawingUpdate IDrawingUpdate) { @@ -42,11 +41,7 @@ public class User return this.IChatUpdate; } - public remote.IClientUpdate getIClientUpdate() - { - return this.IClientUpdate; - } - - public remote.IDrawingUpdate getIDrawingUpdate() { return this.IDrawingUpdate; } + public IDrawingUpdate getIDrawingUpdate() { return this.IDrawingUpdate; } + public IClientUpdate getIClientUpdate() { return this.IClientUpdate; } }