src/main/java/cursor/rybak/game/UserInteraction.java
/**
     * initialize hero with name of the particular race
     *
     * @param teamHeroes team
     */
initialize hero with name of the particular race
@param teamHeroes team
initialize hero with name of the particular race @param teamHeroes team
private static void initializeHero(ArrayList<AbstractRace> teamHeroes) {
        Map<String, Map<String, AbstractRace>> raceMap = RaceMap.getRace();
        String name = askName("hero name");
        String race = askRace();
        AbstractRace hero = askHero(raceMap.get(race), race);
        hero.setHeroName(name);
        distributePoints(hero);
        teamHeroes.add(hero);
    }
private static void initializeHero ( ArrayList < AbstractRace > teamHeroes ) { Map < String , Map < String , AbstractRace > > raceMap = RaceMap . getRace ( ) ; String name = askName ( "hero name" ) ; String race = askRace ( ) ; AbstractRace hero = askHero ( raceMap . get ( race ) , race ) ; hero . setHeroName ( name ) ; distributePoints ( hero ) ; teamHeroes . add ( hero ) ; }
initialize hero with name of the particular race
 @param teamHeroes team
initialize hero with name of the particular race @param teamHeroes team