@Then("^she has spent (\\d+) xp points$") public void she_has_spent_experience_points(int amount) throws Throwable { ExperiencePointManagement pointManagement = PointModelFetcher.fetch(character.getHero()).getExperiencePointManagement(); int spentPoints = pointManagement.getTotalCosts(); assertThat(spentPoints, is(amount)); }
@When("^she gains (\\d+) experience points$") public void she_gains_experience_points(int amount) throws Throwable { ExperiencePoints experiencePoints = PointModelFetcher.fetch(character.getHero()).getExperiencePoints(); ExperiencePointEntry entry = experiencePoints.addEntry(); experiencePoints.selectForChange(entry); experiencePoints.updateCurrentSelection("Test", amount); }
@Then("^she has (\\d+) experience points$") public void she_has_experience_points(int amount) throws Throwable { ExperiencePoints experiencePoints = PointModelFetcher.fetch(character.getHero()).getExperiencePoints(); assertThat(experiencePoints.getTotalExperiencePoints(), is(amount)); }
@When("^she spends (\\d+) experience points$") public void she_spends_xp_experience_points(int amount) throws Throwable { PointModelFetcher.fetch(character.getHero()) .addToExperienceOverview(new ConfigurableValueModel(amount)); character.getHero().getChangeAnnouncer().announceChangeFlavor(ChangeFlavor.UNSPECIFIED); }