Class: PFM::PokemonBattler::MoveHistory
- Defined in:
- docs/5_Battle_03_PokemonBattler.rb
Overview
Class defining an history of move use
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attack_order ⇒ Integer
readonly
Get the attack order of the Pokemon.
-
#move ⇒ Battle::Move
readonly
Get the move that was used.
-
#original_move ⇒ Battle::Move
readonly
Get the actual move object that was used.
-
#targets ⇒ Array<PFM::PokemonBattler>
readonly
Get the target that were affected by the move.
-
#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(move, targets, attack_order) ⇒ MoveHistory
constructor
Create a new Move History.
-
#last_turn? ⇒ Boolean
Tell if the move was used during last turn.
Constructor Details
#initialize(move, targets, attack_order) ⇒ MoveHistory
Create a new Move History
744 745 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 744 def initialize(move, targets, attack_order) end |
Instance Attribute Details
#attack_order ⇒ Integer (readonly)
Get the attack order of the Pokemon
739 740 741 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 739 def attack_order @attack_order end |
#move ⇒ Battle::Move (readonly)
Get the move that was used
730 731 732 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 730 def move @move end |
#original_move ⇒ Battle::Move (readonly)
Get the actual move object that was used
736 737 738 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 736 def original_move @original_move end |
#targets ⇒ Array<PFM::PokemonBattler> (readonly)
Get the target that were affected by the move
733 734 735 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 733 def targets @targets end |
#turn ⇒ Integer (readonly)
Get the turn when it was used
727 728 729 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 727 def turn @turn end |
Instance Method Details
#current_turn? ⇒ Boolean
Tell if the move was used during the current turn
752 753 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 752 def current_turn? end |
#db_symbol ⇒ Symbol
Get the db_symbol of the move
756 757 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 756 def db_symbol end |
#last_turn? ⇒ Boolean
Tell if the move was used during last turn
748 749 |
# File 'docs/5_Battle_03_PokemonBattler.rb', line 748 def last_turn? end |