Tests bis T075 überarbeitet

This commit is contained in:
Filip Szepielewicz
2024-11-22 21:45:22 +01:00
parent 30e4298f88
commit f1d52c445b
49 changed files with 2161 additions and 1951 deletions

View File

@@ -65,7 +65,7 @@ public class MonopolyServer implements MessageListener<HostedConnection>, Connec
/**
* Creates the server.
*/
MonopolyServer() {
public MonopolyServer() {
config.readFromIfExists(CONFIG_FILE);
LOGGER.log(Level.INFO, "Configuration: {0}", config); //NON-NLS
logic = new ServerGameLogic(this, config);
@@ -120,7 +120,7 @@ public class MonopolyServer implements MessageListener<HostedConnection>, Connec
@Override
public void connectionAdded(Server server, HostedConnection hostedConnection) {
LOGGER.log(Level.INFO, "new connection {0}", hostedConnection); //NON-NLS
logic.addPlayer(new Player(hostedConnection.getId()));
logic.addPlayer(hostedConnection.getId());
}
@Override