Fixed:Client Resilience (TCP)

This commit is contained in:
rubenpirreram
2026-05-08 17:16:09 +02:00
parent e78096d2e0
commit 9fe23c6f9e
7 changed files with 91 additions and 10 deletions
@@ -38,6 +38,14 @@ public class GameController {
return false;
return model.SkipNotConnectedPlayer(player);
}
//TODO
public boolean ReconnectPlayer(String username)
{
Player player= model.getPlayerByUsername(username);
if(player==null)
return false;
return model.ReconnectPlayer(player);
}
/**
* Returns the game model managed by this controller.
*