Class: PFM::PokemonBattler::StatHistory
- Defined in:
- docs/5_Battle_03_PokemonBattler.rb
Instance Attribute Summary collapse
-
#launcher ⇒ PFM::PokemonBattler?
readonly
Get the launcher of the stat change.
-
#move ⇒ Battle::Move?
readonly
Get the move that cause the stat change.
-
#power ⇒ Integer
readonly
Get the power of the stat change.
-
#stat ⇒ Symbol
readonly
:atk, :dfe, :spd, :ats, :dfs, :acc, :eva.
-
#target ⇒ PFM::PokemonBattler
readonly
Get the target of the stat change.
-
#turn ⇒ Integer
readonly
Get the turn when it was used.
Instance Method Summary collapse
-
#current_turn? ⇒ Boolean
Tell if the move was used during the current turn.
-
#db_symbol ⇒ Symbol
Get the db_symbol of the move.
-
#initialize(stat, power, target, launcher, move) ⇒ StatHistory
constructor
Create a new Stat History.
-
#last_turn? ⇒ Boolean
Tell if the move was used during last turn.
Constructor Details
#initialize(stat, power, target, launcher, move) ⇒ StatHistory
Create a new Stat History
822 823 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 822 def initialize(stat, power, target, launcher, move) end |
Instance Attribute Details
#launcher ⇒ PFM::PokemonBattler? (readonly)
Get the launcher of the stat change
812 813 814 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 812 def launcher @launcher end |
#move ⇒ Battle::Move? (readonly)
Get the move that cause the stat change
815 816 817 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 815 def move @move end |
#power ⇒ Integer (readonly)
Get the power of the stat change
806 807 808 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 806 def power @power end |
#stat ⇒ Symbol (readonly)
:atk, :dfe, :spd, :ats, :dfs, :acc, :eva
803 804 805 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 803 def stat @stat end |
#target ⇒ PFM::PokemonBattler (readonly)
Get the target of the stat change
809 810 811 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 809 def target @target end |
#turn ⇒ Integer (readonly)
Get the turn when it was used
800 801 802 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 800 def turn @turn end |
Instance Method Details
#current_turn? ⇒ Boolean
Tell if the move was used during the current turn
830 831 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 830 def current_turn? end |
#db_symbol ⇒ Symbol
Get the db_symbol of the move
834 835 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 834 def db_symbol end |
#last_turn? ⇒ Boolean
Tell if the move was used during last turn
826 827 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 826 def last_turn? end |