public void restorePlayer(Player player) { player.setMaxBombs(maxbombs); player.setBombRadius(bombradius); player.setBombRemote(bombRemote); player.setSpeed(speed); // TODO Shield }
public static PlayerData extractData(Player player) { return new PlayerData( player.getMaxBombs(), player.getBombRadius(), player.hasRemoteBombs(), player.getSpeed()); }