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