Package de.Keyle.MyPet.api.skill.experience
package de.Keyle.MyPet.api.skill.experience
Experience curves and the per-mob experience table.
ExperienceCalculator is the strategy for how much cumulative experience each pet
level costs. Four implementations ship: DefaultExperienceCalculator,
LinearExperienceCalculator, ExponentialExperienceCalculator and
PowerExperienceCalculator. ExperienceCalculatorManager registers them and
switches between them at runtime, and ExperienceCache keeps the computed
per-level values on disk.
MonsterExperience is the experience a pet earns for killing a given mob type.
-
ClassDescriptionThe built-in experience calculator that ships with MyPet.Disk-backed cache for pre-computed experience-per-level values.Thrown when a requested level has not yet been computed and cached.Strategy interface for computing the cumulative experience required at each pet level.Service responsible for managing available
ExperienceCalculatorimplementations and switching between them at runtime.Geometric experience curve: each levellcostsBase * Growth^(l-1), summed from level 1 up to the target.Flat experience curve: every level costs the sameBaseamount, so the cumulative experience to reach levelLisBase * (L - 1).Represents the experience value (or range) awarded to a pet when a specific mob type is killed.Polynomial experience curve: each levellcostsFactor * l^Exponent, summed from level 1 up to the target.