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
140 141 142 |
# File 'docs/5_Battle_30_AI.rb', line 140 def env @env end |
Class Method Details
.extended(mod)
Method called when a visual gets mocked (through extend)
122 123 |
# File 'docs/5_Battle_30_AI.rb', line 122 def extended(mod) end |
.mock_effect_handler(handler, battlers)
Mock the effect handler
127 128 |
# File 'docs/5_Battle_30_AI.rb', line 127 def mock_effect_handler(handler, battlers) end |
Instance Method Details
#fterrain_change_handler ⇒ Battle::Logic::WeatherChangeHandler
Get a new field terrain change handler
136 137 |
# File 'docs/5_Battle_30_AI.rb', line 136 def fterrain_change_handler end |
#weather_change_handler ⇒ Battle::Logic::WeatherChangeHandler
Get a new weather change handler
132 133 |
# File 'docs/5_Battle_30_AI.rb', line 132 def weather_change_handler end |