String color = playerElement.getAttributeValue("color");
Color c = new Color(Integer.parseInt(color));
// RealPlayer or IAPlayer ?
Player player = (type.equals("RealPlayer")) ?
new RealPlayer(name, new Bank(money), c) : new IAPlayer(name, new Bank(money), c);
// finally we add the Player
game.getPlayerManager().addPlayer(player);
}
}