Search in sources :

Example 1 with DerivatedStatsContributionsMgr

use of delta.games.lotro.character.stats.base.DerivatedStatsContributionsMgr in project lotro-companion by dmorcellet.

the class EssencesSummaryPanelController method updateStatsPanel.

private void updateStatsPanel() {
    // Raw
    BasicStatsSet raw = _summary.getStats();
    updateStatsPanel(_rawStatsPanel, raw);
    // Cumulated
    DerivatedStatsContributionsMgr derivedStatsMgr = new DerivatedStatsContributionsMgr();
    CharacterClass characterClass = _toon.getCharacterClass();
    BasicStatsSet derivated = derivedStatsMgr.getContribution(characterClass, raw);
    BasicStatsSet cumulated = new BasicStatsSet();
    cumulated.addStats(raw);
    cumulated.addStats(derivated);
    updateStatsPanel(_cumulatedStatsPanel, cumulated);
}
Also used : DerivatedStatsContributionsMgr(delta.games.lotro.character.stats.base.DerivatedStatsContributionsMgr) BasicStatsSet(delta.games.lotro.character.stats.BasicStatsSet) CharacterClass(delta.games.lotro.common.CharacterClass)

Aggregations

BasicStatsSet (delta.games.lotro.character.stats.BasicStatsSet)1 DerivatedStatsContributionsMgr (delta.games.lotro.character.stats.base.DerivatedStatsContributionsMgr)1 CharacterClass (delta.games.lotro.common.CharacterClass)1