Module: Battle::SceneMock
- Defined in:
- docs/5_Battle_30_AI.rb
Overview
Module responsive of mocking the battle scene so nothing happen on the reality
How to use:
scene = @scene.clone
scene.extend(SceneMock)
Note: super inside this script might call the original function
Instance Attribute Summary collapse
-
#mock_actions ⇒ Array<Hash>
readonly
Get the mock actions.
Class Method Summary collapse
-
.extended(mod)
Method called when a scene gets mocked (through extend).
Instance Method Summary collapse
- #display_message
- #display_message_and_wait
- #message_window
-
#mock_clear_actions
Function that clears the mock actions.
-
#mock_push_action(data)
Function that pushes an action to the action array (thing that happens during execution).
- #update
Instance Attribute Details
#mock_actions ⇒ Array<Hash> (readonly)
Get the mock actions
18 19 20 |
# File 'docs/5_Battle_30_AI.rb', line 18 def mock_actions @mock_actions end |
Class Method Details
.extended(mod)
Method called when a scene gets mocked (through extend)
13 14 |
# File 'docs/5_Battle_30_AI.rb', line 13 def extended(mod) end |
Instance Method Details
#display_message
30 31 |
# File 'docs/5_Battle_30_AI.rb', line 30 def (*) end |
#display_message_and_wait
28 29 |
# File 'docs/5_Battle_30_AI.rb', line 28 def (*) end |
#message_window
26 27 |
# File 'docs/5_Battle_30_AI.rb', line 26 def end |
#mock_clear_actions
Function that clears the mock actions
24 25 |
# File 'docs/5_Battle_30_AI.rb', line 24 def mock_clear_actions end |
#mock_push_action(data)
Function that pushes an action to the action array (thing that happens during execution)
21 22 |
# File 'docs/5_Battle_30_AI.rb', line 21 def mock_push_action(data) end |
#update
32 33 |
# File 'docs/5_Battle_30_AI.rb', line 32 def update end |