diff --git a/src/main/java/com/broll/networklib/client/impl/DummyLobby.java b/src/main/java/com/broll/networklib/client/impl/DummyLobby.java new file mode 100644 index 0000000..06a8801 --- /dev/null +++ b/src/main/java/com/broll/networklib/client/impl/DummyLobby.java @@ -0,0 +1,8 @@ +package com.broll.networklib.client.impl; + +public class DummyLobby extends GameLobby{ + + public DummyLobby(){ + + } +} diff --git a/src/main/java/com/broll/networklib/client/impl/DummyLobbyPlayer.java b/src/main/java/com/broll/networklib/client/impl/DummyLobbyPlayer.java new file mode 100644 index 0000000..aa0ab94 --- /dev/null +++ b/src/main/java/com/broll/networklib/client/impl/DummyLobbyPlayer.java @@ -0,0 +1,11 @@ +package com.broll.networklib.client.impl; + +import com.broll.networklib.client.impl.LobbyPlayer; + +public class DummyLobbyPlayer extends LobbyPlayer { + + + public DummyLobbyPlayer(int id, DummyLobby lobby) { + super(id, lobby); + } +} diff --git a/src/main/java/com/broll/networklib/server/impl/DummyLobbyPlayer.java b/src/main/java/com/broll/networklib/server/impl/DummyLobbyPlayer.java new file mode 100644 index 0000000..fd85593 --- /dev/null +++ b/src/main/java/com/broll/networklib/server/impl/DummyLobbyPlayer.java @@ -0,0 +1,7 @@ +package com.broll.networklib.server.impl; + +public class DummyLobbyPlayer
extends LobbyPlayer
{ + public DummyLobbyPlayer() { + super(new DummyPlayer<>()); + } +} diff --git a/src/main/java/com/broll/networklib/server/impl/DummyPlayer.java b/src/main/java/com/broll/networklib/server/impl/DummyPlayer.java new file mode 100644 index 0000000..19a2178 --- /dev/null +++ b/src/main/java/com/broll/networklib/server/impl/DummyPlayer.java @@ -0,0 +1,19 @@ +package com.broll.networklib.server.impl; + +import com.broll.networklib.server.NetworkConnection; + +public class DummyPlayer
extends Player
{
+ public DummyPlayer() {
+ super(-1, null, null);
+ }
+
+ @Override
+ public void sendTCP(Object object) {
+
+ }
+
+ @Override
+ public void sendUDP(Object object) {
+
+ }
+}
diff --git a/src/main/java/com/broll/networklib/server/impl/DummyServerLobby.java b/src/main/java/com/broll/networklib/server/impl/DummyServerLobby.java
new file mode 100644
index 0000000..a3b03d4
--- /dev/null
+++ b/src/main/java/com/broll/networklib/server/impl/DummyServerLobby.java
@@ -0,0 +1,7 @@
+package com.broll.networklib.server.impl;
+
+public class DummyServerLobby {
private boolean allowedToLeaveLockedLobby = false;
- public Player(int id, String authenticationKey, NetworkConnection connection) {
+ Player(int id, String authenticationKey, NetworkConnection connection) {
this.id = id;
this.authenticationKey = authenticationKey;
this.connection = connection;