Class: PFM::Pokemon::ExpList

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(kind) ⇒ ExpList

Create a new ExpList

Parameters:

  • kind (Integer)

    kind of exp



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

Parameters:

  • level (Integer)

Returns:

  • (Integer)


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

Yield Parameters:

  • total_exp (Integer)

    the total exp at the current level



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