Class: PFM::PokemonBattler::MoveHistory
- Defined in:
- docs/01600_Alpha_25_Battle_Engine_00100_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
733 734 |
# File 'docs/01600_Alpha_25_Battle_Engine_00100_PokemonBattler.rb', line 733 def initialize(move, targets, attack_order) end |
Instance Attribute Details
#attack_order ⇒ Integer (readonly)
Get the attack order of the Pokemon
728 729 730 |
# File 'docs/01600_Alpha_25_Battle_Engine_00100_PokemonBattler.rb', line 728 def attack_order @attack_order end |
#move ⇒ Battle::Move (readonly)
Get the move that was used
719 720 721 |
# File 'docs/01600_Alpha_25_Battle_Engine_00100_PokemonBattler.rb', line 719 def move @move end |
#original_move ⇒ Battle::Move (readonly)
Get the actual move object that was used
725 726 727 |
# File 'docs/01600_Alpha_25_Battle_Engine_00100_PokemonBattler.rb', line 725 def original_move @original_move end |
#targets ⇒ Array<PFM::PokemonBattler> (readonly)
Get the target that were affected by the move
722 723 724 |
# File 'docs/01600_Alpha_25_Battle_Engine_00100_PokemonBattler.rb', line 722 def targets @targets end |
#turn ⇒ Integer (readonly)
Get the turn when it was used
716 717 718 |
# File 'docs/01600_Alpha_25_Battle_Engine_00100_PokemonBattler.rb', line 716 def turn @turn end |
Instance Method Details
#current_turn? ⇒ Boolean
Tell if the move was used during the current turn
741 742 |
# File 'docs/01600_Alpha_25_Battle_Engine_00100_PokemonBattler.rb', line 741 def current_turn? end |
#db_symbol ⇒ Symbol
Get the db_symbol of the move
745 746 |
# File 'docs/01600_Alpha_25_Battle_Engine_00100_PokemonBattler.rb', line 745 def db_symbol end |
#last_turn? ⇒ Boolean
Tell if the move was used during last turn
737 738 |
# File 'docs/01600_Alpha_25_Battle_Engine_00100_PokemonBattler.rb', line 737 def last_turn? end |