Module: Battle::LogicMock
- Defined in:
- docs/5_Battle_30_AI.rb
Overview
Module responsive of mocking the battle logic so nothing happen on the reality
Note: super inside this script might call the original function
Instance Attribute Summary collapse
-
#env ⇒ PFM::Environnement
readonly
Get the env object.
Class Method Summary collapse
-
.extended(mod)
Method called when a visual gets mocked (through extend).
-
.mock_effect_handler(handler, battlers)
Mock the effect handler.
Instance Method Summary collapse
-
#fterrain_change_handler ⇒ Battle::Logic::WeatherChangeHandler
Get a new field terrain change handler.
-
#weather_change_handler ⇒ Battle::Logic::WeatherChangeHandler
Get a new weather change handler.
Instance Attribute Details
#env ⇒ PFM::Environnement (readonly)
Get the env object
128 129 130 |
# File 'docs/5_Battle_30_AI.rb', line 128 def env @env end |
Class Method Details
.extended(mod)
Method called when a visual gets mocked (through extend)
110 111 |
# File 'docs/5_Battle_30_AI.rb', line 110 def extended(mod) end |
.mock_effect_handler(handler, battlers)
Mock the effect handler
115 116 |
# File 'docs/5_Battle_30_AI.rb', line 115 def mock_effect_handler(handler, battlers) end |
Instance Method Details
#fterrain_change_handler ⇒ Battle::Logic::WeatherChangeHandler
Get a new field terrain change handler
124 125 |
# File 'docs/5_Battle_30_AI.rb', line 124 def fterrain_change_handler end |
#weather_change_handler ⇒ Battle::Logic::WeatherChangeHandler
Get a new weather change handler
120 121 |
# File 'docs/5_Battle_30_AI.rb', line 120 def weather_change_handler end |