Class: Battle::Logic::EndTurnHandler

Inherits:
Object
  • Object
show all
Includes:
Hooks
Defined in:
docs/5_Battle_04_Logic.rb

Overview

Handler responsive of calling all the end turn events

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Hooks

#exec_hooks, #force_return, included, register, remove, remove_without_name

Constructor Details

#initialize(logic, scene) ⇒ EndTurnHandler

Create a new end turn handler

Parameters:



1396
1397
# File 'docs/5_Battle_04_Logic.rb', line 1396

def initialize(logic, scene)
end

Class Method Details

.register_end_turn_event(reason) {|logic, scene, battlers| ... }

Register a end turn event

Parameters:

  • reason (String)

    reason of the event

Yield Parameters:



1407
1408
# File 'docs/5_Battle_04_Logic.rb', line 1407

def register_end_turn_event(reason)
end

Instance Method Details

#process_events

Function that call all the events (end_turn_event)



1399
1400
# File 'docs/5_Battle_04_Logic.rb', line 1399

def process_events
end