Module: Hooks
- Included in:
- Battle::AI::Base, Battle::Logic::AbilityChangeHandler, Battle::Logic::BattleEndHandler, Battle::Logic::CatchHandler, Battle::Logic::DamageHandler, Battle::Logic::EndTurnHandler, Battle::Logic::ExpHandler, Battle::Logic::FTerrainChangeHandler, Battle::Logic::FleeHandler, Battle::Logic::ItemChangeHandler, Battle::Logic::StatChangeHandler, Battle::Logic::StatusChangeHandler, Battle::Logic::SwitchHandler, Battle::Logic::TransformHandler, Battle::Logic::WeatherChangeHandler, Battle::Move, Battle::Scene, Graphics, Graphics, PFM::Pokemon, PFM::PokemonBattler, Scene_Map, Spriteset_Map
- Defined in:
- docs/000_a_root.rb
Overview
end
Defined Under Namespace
Modules: Reason Classes: ForceReturn
Class Method Summary collapse
-
.included(klass)
Function called when Hooks is included.
-
.register(klass, name, reason = nil, &block) {|hook_binding| ... }
Function that register a hook.
-
.remove(klass, name, reason = 'None')
Function that removes a hook with a reason.
-
.remove_without_name(klass, reason = 'None')
Function that removes a hook with a reason.
Instance Method Summary collapse
-
#exec_hooks(klass, name, method_binding)
Function that execute the hooks.
-
#force_return(object)
Function that force the return from the hook.
Class Method Details
.included(klass)
Function called when Hooks is included
167 168 |
# File 'docs/000_a_root.rb', line 167 def included(klass) end |
.register(klass, name, reason = nil, &block) {|hook_binding| ... }
Function that register a hook
152 153 |
# File 'docs/000_a_root.rb', line 152 def register(klass, name, reason = nil, &block) end |
.remove(klass, name, reason = 'None')
Function that removes a hook with a reason
158 159 |
# File 'docs/000_a_root.rb', line 158 def remove(klass, name, reason = 'None') end |
.remove_without_name(klass, reason = 'None')
Function that removes a hook with a reason
163 164 |
# File 'docs/000_a_root.rb', line 163 def remove_without_name(klass, reason = 'None') end |
Instance Method Details
#exec_hooks(klass, name, method_binding)
Function that execute the hooks
138 139 |
# File 'docs/000_a_root.rb', line 138 def exec_hooks(klass, name, method_binding) end |
#force_return(object)
Function that force the return from the hook
142 143 |
# File 'docs/000_a_root.rb', line 142 def force_return(object) end |