Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolleander committed Oct 29, 2023
1 parent 7d57be9 commit 42a457b
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.broll.networklib.client.impl;

public class DummyLobby extends GameLobby{

public DummyLobby(){

}
}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.broll.networklib.server.impl;

public class DummyLobbyPlayer<P extends ILobbyData> extends LobbyPlayer<P>{
public DummyLobbyPlayer() {
super(new DummyPlayer<>());
}
}
19 changes: 19 additions & 0 deletions src/main/java/com/broll/networklib/server/impl/DummyPlayer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.broll.networklib.server.impl;

import com.broll.networklib.server.NetworkConnection;

public class DummyPlayer<P extends ILobbyData> extends Player<P>{
public DummyPlayer() {
super(-1, null, null);
}

@Override
public void sendTCP(Object object) {

}

@Override
public void sendUDP(Object object) {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.broll.networklib.server.impl;

public class DummyServerLobby<L extends ILobbyData, P extends ILobbyData> extends ServerLobby<L,P>{
public DummyServerLobby() {
super(null, null, -1, null);
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/broll/networklib/server/impl/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Player<P extends ILobbyData> {

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;
Expand Down

0 comments on commit 42a457b

Please sign in to comment.