/** * Deserialize a LobbyPlayer object out of a Json representation. This is done on the client side, * so aClient is null here. * * @param j The Json representation of the LobbyPlayer */ public LobbyPlayer(final LobbyState state, final Json j) { aLobbyState = state; aClient = null; aColor = j.getStringAttribute("color"); aIsAdmin = j.getBooleanAttribute("admin"); aNickname = j.getStringAttribute("nickname"); aRace = j.getStringAttribute("race"); aIsReady = j.getBooleanAttribute("ready"); }