Interface ICitizenExperienceHandler

All Known Implementing Classes:
CitizenExperienceHandler

public interface ICitizenExperienceHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addExperience(double xp)
    Add experience points to citizen.
    void
    Drop some experience share depending on the experience and experienceLevel.
    void
    Collect exp orbs around the entity.
    void
    Updates the level of the citizen.
  • Method Details

    • updateLevel

      void updateLevel()
      Updates the level of the citizen.
    • addExperience

      void addExperience(double xp)
      Add experience points to citizen. Increases the citizen level if he has sufficient experience. This will reset the experience.
      Parameters:
      xp - the amount of points added.
    • dropExperience

      void dropExperience()
      Drop some experience share depending on the experience and experienceLevel.
    • gatherXp

      void gatherXp()
      Collect exp orbs around the entity.