Class: PFM::Pokemon::ExpList
- Includes:
- Enumerable
- Defined in:
- docs/4_Systems_000_General_1_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
1099 1100 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1099 def initialize(kind) end |
Instance Method Details
#[](level) ⇒ Integer
Get the total amount of exp to level up to the level parameter
1104 1105 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1104 def [](level) end |
#each {|total_exp| ... }
Iterate over all the experience curve
1108 1109 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1108 def each end |
#size
Get the size of the exp list table for this curve
1111 1112 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1111 def size end |