Class: PFM::Pokemon::ExpList
- Includes:
- Enumerable
- Defined in:
- docs/01450_Systems_00000_General_00001_PFM.rb
Overview
Helper class helping to get exp values based on each kind of equation
Constant Summary collapse
- KIND_TO_METHOD =
List of method name per kind of exp
%i[exp_fast exp_normal exp_slow exp_parabolic exp_eratic exp_fluctuating]
Instance Method Summary collapse
-
#[](level) ⇒ Integer
Get the total amount of exp to level up to the level parameter.
-
#each {|total_exp| ... }
Iterate over all the experience curve.
-
#initialize(kind) ⇒ ExpList
constructor
Create a new ExpList.
-
#size
Get the size of the exp list table for this curve.
Constructor Details
#initialize(kind) ⇒ ExpList
Create a new ExpList
1072 1073 |
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1072 def initialize(kind) end |
Instance Method Details
#[](level) ⇒ Integer
Get the total amount of exp to level up to the level parameter
1077 1078 |
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1077 def [](level) end |
#each {|total_exp| ... }
Iterate over all the experience curve
1081 1082 |
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1081 def each end |
#size
Get the size of the exp list table for this curve
1084 1085 |
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1084 def size end |