Module: Battle::VisualMock
- Defined in:
- docs/5_Battle_30_AI.rb
Overview
Module responsive of mocking the battle visual so nothing happen on the reality
Note: super inside this script might call the original function
Class Method Summary collapse
-
.extended(mod)
Method called when a visual gets mocked (through extend).
Instance Method Summary collapse
-
#hide_team_info
Hide team info.
-
#lock
Lock the battle scene.
-
#refresh_info_bar(pokemon)
Refresh a specific bar (when Pokemon loses HP or change state).
-
#set_info_state(state, pokemon = nil)
Set the state info.
-
#show_ability(target)
Show the ability animation.
-
#show_exp_distribution(exp_data)
Show the exp distribution.
-
#show_hp_animations(targets, hps, effectiveness = [], &messages)
Show HP animations.
-
#show_item(target)
Show the item user animation.
-
#show_move_animation(user, targets, move)
Make a move animation.
-
#show_pokemon_choice(forced = false, cannot_switch_index: nil) ⇒ PFM::PokemonBattler?
Method that show the pokemon choice.
-
#show_rmxp_animation(target, id)
Show a dedicated animation.
-
#show_switch_form_animation(target)
Show the pokemon switch form animation.
-
#wait_for_animation
Wait for all animation to end (non parallel one).
Class Method Details
.extended(mod)
Method called when a visual gets mocked (through extend)
53 54 |
# File 'docs/5_Battle_30_AI.rb', line 53 def extended(mod) end |
Instance Method Details
#hide_team_info
Hide team info
106 107 |
# File 'docs/5_Battle_30_AI.rb', line 106 def hide_team_info end |
#lock
Lock the battle scene
57 58 |
# File 'docs/5_Battle_30_AI.rb', line 57 def lock end |
#refresh_info_bar(pokemon)
Refresh a specific bar (when Pokemon loses HP or change state)
84 85 |
# File 'docs/5_Battle_30_AI.rb', line 84 def (pokemon) end |
#set_info_state(state, pokemon = nil)
Set the state info
100 101 |
# File 'docs/5_Battle_30_AI.rb', line 100 def set_info_state(state, pokemon = nil) end |
#show_ability(target)
Show the ability animation
61 62 |
# File 'docs/5_Battle_30_AI.rb', line 61 def show_ability(target) end |
#show_exp_distribution(exp_data)
Show the exp distribution
65 66 |
# File 'docs/5_Battle_30_AI.rb', line 65 def show_exp_distribution(exp_data) end |
#show_hp_animations(targets, hps, effectiveness = [], &messages)
Show HP animations
91 92 |
# File 'docs/5_Battle_30_AI.rb', line 91 def show_hp_animations(targets, hps, effectiveness = [], &) end |
#show_item(target)
Show the item user animation
80 81 |
# File 'docs/5_Battle_30_AI.rb', line 80 def show_item(target) end |
#show_move_animation(user, targets, move)
Make a move animation
112 113 |
# File 'docs/5_Battle_30_AI.rb', line 112 def show_move_animation(user, targets, move) end |
#show_pokemon_choice(forced = false, cannot_switch_index: nil) ⇒ PFM::PokemonBattler?
Method that show the pokemon choice
71 72 |
# File 'docs/5_Battle_30_AI.rb', line 71 def show_pokemon_choice(forced = false, cannot_switch_index: nil) end |
#show_rmxp_animation(target, id)
Show a dedicated animation
76 77 |
# File 'docs/5_Battle_30_AI.rb', line 76 def show_rmxp_animation(target, id) end |
#show_switch_form_animation(target)
Show the pokemon switch form animation
95 96 |
# File 'docs/5_Battle_30_AI.rb', line 95 def show_switch_form_animation(target) end |
#wait_for_animation
Wait for all animation to end (non parallel one)
103 104 |
# File 'docs/5_Battle_30_AI.rb', line 103 def wait_for_animation end |