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