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
-
#result ⇒ Array, :cancel
The position (bank, position) of the choosen target.
Instance Method Summary collapse
-
#validated? ⇒ Boolean
If the player made a choice.
Instance Attribute Details
#result ⇒ Array, :cancel
The position (bank, position) of the choosen target
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
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 |