コード例 #1
0
  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();
              }
            });
  }
コード例 #2
0
 private int getTotalXP() {
   return character.getExperiencePoints().getTotalExperiencePoints() + management.getMiscGain();
 }