messagingService.addMessage(null,
Messages.PlayerInitializer_PlayersInitialized);
}
private void createDynastyForUser(User user) {
Dynasty dynasty = new Dynasty(
userDynastyMap.get(user) == null ? user.getName()
: userDynastyMap.get(user), userCOADynastyMap.get(user));
Country country = countryService
.createCountry(userDynastyMap.get(user));
Player man = playerService.generateNewPlayer(Gender.MALE);
man.setAge(INITIAL_AGE_MAN);
Player woman = playerService.generateNewPlayer(Gender.FEMALE);
woman.setAge(INITIAL_AGE_WOMAN);
dynasty.addPlayer(man);
dynasty.addPlayer(woman);
marriageService.marry(man, woman);
playerService.setDynastyForUser(dynasty, user);
propertyService.setOwnership(man, country);
}