use of de.gg.game.model.entities.Profession in project ProjektGG by eskalon.
the class WorldGenerator method generatePlayers.
private void generatePlayers() {
for (Entry<Short, LobbyPlayer> entry : players.entrySet()) {
LobbyPlayer lp = entry.getValue();
Profession profession = new Profession(ProfessionType.values()[lp.getProfessionTypeIndex()]);
Character character = CharacterFactory.createPlayerCharacter(random, profession.getProfession(), setup.getDifficulty(), lp.isMale(), lp.getReligion(), lp.getName(), lp.getSurname());
world.characters.put(world.characterIndex, character);
// TODO 1. Skill-Werte aus LobbyPlayer hinzufügen (Reihenfolge:
// agility, bargain, combat, crafting, rhetorical, stealth)
// TODO 2. House-IDS setzen
Player player = PlayerFactory.createPlayerCharacter(world.characterIndex, lp.getIcon(), profession, (short) 0, (short) 0, 1, 1, 1, 1, 1, 1);
world.players.put(entry.getKey(), player);
world.characterIndex++;
}
}
Aggregations