Module: Battle::LogicMock

Defined in:
docs/01600_Alpha_25_Battle_Engine_08000_Battle_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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#envPFM::Environnement (readonly)

Get the env object

Returns:



128
129
130
# File 'docs/01600_Alpha_25_Battle_Engine_08000_Battle_AI.rb', line 128

def env
  @env
end

Class Method Details

.extended(mod)

Method called when a visual gets mocked (through extend)

Parameters:



110
111
# File 'docs/01600_Alpha_25_Battle_Engine_08000_Battle_AI.rb', line 110

def extended(mod)
end

.mock_effect_handler(handler, battlers)

Mock the effect handler

Parameters:



115
116
# File 'docs/01600_Alpha_25_Battle_Engine_08000_Battle_AI.rb', line 115

def mock_effect_handler(handler, battlers)
end

Instance Method Details

#fterrain_change_handlerBattle::Logic::WeatherChangeHandler

Get a new field terrain change handler



124
125
# File 'docs/01600_Alpha_25_Battle_Engine_08000_Battle_AI.rb', line 124

def fterrain_change_handler
end

#weather_change_handlerBattle::Logic::WeatherChangeHandler

Get a new weather change handler



120
121
# File 'docs/01600_Alpha_25_Battle_Engine_08000_Battle_AI.rb', line 120

def weather_change_handler
end