Class: BattleUI::TargetSelection

Inherits:
UI::SpriteStack show all
Includes:
TargetSelectionAbstraction
Defined in:
docs/5_Battle_01_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:



1541
1542
# File 'docs/5_Battle_01_Scene.rb', line 1541

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)


1575
1576
# File 'docs/5_Battle_01_Scene.rb', line 1575

def cannot_show?(move, pokemon, logic)
end

Instance Method Details

#update

Update the Window cursor



1544
1545
# File 'docs/5_Battle_01_Scene.rb', line 1544

def update
end