private void initTotal(IOverviewCategory category) { totalView = category.addAlotmentView(getString("Overview.Experience.Total"), 4); character .getExperiencePoints() .addExperiencePointConfigurationListener( new IExperiencePointConfigurationListener() { @Override public void entryAdded(IExperiencePointEntry entry) { calculateXPCost(); } @Override public void entryRemoved(IExperiencePointEntry entry) { calculateXPCost(); } @Override public void entryChanged(IExperiencePointEntry entry) { calculateXPCost(); } }); }
private int getTotalXP() { return character.getExperiencePoints().getTotalExperiencePoints() + management.getMiscGain(); }