C# Class Pokemon3D.GameModes.Monsters.PokemonExperienceCalculator

A class that contains methods to work with Pokémon experience formulas.
显示文件 Open project: nilllzz/Pokemon3D

Public Methods

Method Description
ExperienceNeededForLevel ( ExperienceType experienceType, int level ) : int
LevelForExperienceValue ( ExperienceType experienceType, int experience ) : int

Returns the equivalent level for an experience value.

Private Methods

Method Description
ExperienceNeededForLevelErratic ( double n ) : double
ExperienceNeededForLevelFast ( double n ) : double
ExperienceNeededForLevelFluctuating ( double n ) : double
ExperienceNeededForLevelMediumFast ( double n ) : double
ExperienceNeededForLevelMediumSlow ( double n ) : double
ExperienceNeededForLevelSlow ( double n ) : double

Method Details

ExperienceNeededForLevel() public static method

public static ExperienceNeededForLevel ( ExperienceType experienceType, int level ) : int
experienceType ExperienceType
level int
return int

LevelForExperienceValue() public static method

Returns the equivalent level for an experience value.
public static LevelForExperienceValue ( ExperienceType experienceType, int experience ) : int
experienceType ExperienceType
experience int
return int