Module: BattleUI::TargetSelectionAbstraction

Included in:
TargetSelection
Defined in:
scripts/01600 Alpha 25 Battle Engine/00001 Battle_Scene/00001 BattleUI/00050 TargetSelectionAbstraction.rb

Overview

Abstraction of the Target Selection to comply with what the Visual expect

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultArray, :cancel

The position (bank, position) of the choosen target

Returns:

  • (Array, :cancel)


6
7
8
# File 'scripts/01600 Alpha 25 Battle Engine/00001 Battle_Scene/00001 BattleUI/00050 TargetSelectionAbstraction.rb', line 6

def result
  @result
end

Instance Method Details

#validated?Boolean

If the player made a choice

Returns:

  • (Boolean)


10
11
12
# File 'scripts/01600 Alpha 25 Battle Engine/00001 Battle_Scene/00001 BattleUI/00050 TargetSelectionAbstraction.rb', line 10

def validated?
  !@result.nil? && (respond_to?(:done?, true) ? done? : true)
end