Class: PFM::Pokemon::ExpList

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

Constructor Details

#initialize(kind) ⇒ ExpList

Create a new ExpList

Parameters:

  • kind (Integer)

    kind of exp



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

Parameters:

  • level (Integer)

Returns:

  • (Integer)


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

Yield Parameters:

  • total_exp (Integer)

    the total exp at the current level



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