src/main/java/cursor/rybak/game/UserInteraction.java
/**
     * distribute point to upgrade from total points
     *
     * @param hero instance of particular hero
     */
distribute point to upgrade from total points
@param hero instance of particular hero
distribute point to upgrade from total points @param hero instance of particular hero
private static void distributePoints(AbstractRace hero) {
        int remainedPoints = (int) hero.getXp();
        Message.printDistributionIntro(remainedPoints);
        while (remainedPoints > 0) {
            String characteristic = askKeyToUpgrade(hero.keyToUpgrade);
            Message.printRemainedPoints(remainedPoints);
            remainedPoints = upgradeHeroKey(remainedPoints, characteristic, hero);
        }
    }
private static void distributePoints ( AbstractRace hero ) { int remainedPoints = ( int ) hero . getXp ( ) ; Message . printDistributionIntro ( remainedPoints ) ; while ( remainedPoints > 0 ) { String characteristic = askKeyToUpgrade ( hero . keyToUpgrade ) ; Message . printRemainedPoints ( remainedPoints ) ; remainedPoints = upgradeHeroKey ( remainedPoints , characteristic , hero ) ; } }
distribute point to upgrade from total points
 @param hero instance of particular hero
distribute point to upgrade from total points @param hero instance of particular hero