Class: BattleUI::TargetSelection

Inherits:
UI::SpriteStack show all
Includes:
TargetSelectionAbstraction
Defined in:
docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb

Overview

UI element responsive of letting the Player choose which creature to aim

Defined Under Namespace

Classes: Button

Constant Summary collapse

SKIP_NO_CHOICE_SKILL =

Tell if moves with no choice should not show that UI

true

Constants inherited from UI::SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

Attributes included from TargetSelectionAbstraction

#result

Attributes inherited from UI::SpriteStack

#animated, #data, #moving, #stack, #viewport, #x, #y

Class Method Summary collapse

Instance Method Summary collapse

Methods included from TargetSelectionAbstraction

#validated?

Methods inherited from UI::SpriteStack

#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport, launcher, move, logic) ⇒ TargetSelection

Create a new TargetSelection

Parameters:



1512
1513
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1512

def initialize(viewport, launcher, move, logic)
end

Class Method Details

.cannot_show?(move, pokemon, logic) ⇒ Boolean

Tell if the UI can be shown or not

Parameters:

Returns:

  • (Boolean)


1546
1547
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1546

def cannot_show?(move, pokemon, logic)
end

Instance Method Details

#update

Update the Window cursor



1515
1516
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1515

def update
end