Class: UI::Storage::SelectionHandler
- Defined in:
- docs/4_Systems_200_Storage.rb
Overview
Class responsive of handling the selection
Instance Attribute Summary collapse
-
#cursor ⇒ CursorHandler
writeonly
Set the current cursor handler.
-
#party ⇒ Array<PFM::Pokemon>
writeonly
Set the current party.
-
#storage ⇒ PFM::Storage
writeonly
Set the current storage object.
Instance Method Summary collapse
-
#all_selected_pokemon ⇒ Array<PFM::Pokemon>
Get all selected Pokemon.
-
#all_selected_pokemon_in_party ⇒ Array<PFM::Pokemon>
Get all selected Pokemon in party.
-
#box_selection_display=(box)
Define the box selection display.
-
#clear
Clear the selection.
-
#empty? ⇒ Boolean
Tell if all selection are empty.
-
#initialize(mode_handler) ⇒ SelectionHandler
constructor
Create a new selection handler.
-
#move_items_to_cursor ⇒ Boolean
Move the current selection of items to the current cursor.
-
#move_pokemon_to_cursor ⇒ Boolean
Move the current selection of pokemon to the current cursor.
-
#party_selection_display=(party_display)
Define the party selection display.
-
#release_selected_pokemon
Release all selected Pokemon.
-
#select
Select or deselect the current index.
-
#update_selection
Update the current selection.
Constructor Details
#initialize(mode_handler) ⇒ SelectionHandler
Create a new selection handler
518 519 |
# File 'docs/4_Systems_200_Storage.rb', line 518 def initialize(mode_handler) end |
Instance Attribute Details
#cursor=(value) ⇒ CursorHandler (writeonly)
Set the current cursor handler
512 513 514 |
# File 'docs/4_Systems_200_Storage.rb', line 512 def cursor=(value) @cursor = value end |
#party=(value) ⇒ Array<PFM::Pokemon> (writeonly)
Set the current party
515 516 517 |
# File 'docs/4_Systems_200_Storage.rb', line 515 def party=(value) @party = value end |
#storage=(value) ⇒ PFM::Storage (writeonly)
Set the current storage object
509 510 511 |
# File 'docs/4_Systems_200_Storage.rb', line 509 def storage=(value) @storage = value end |
Instance Method Details
#all_selected_pokemon ⇒ Array<PFM::Pokemon>
Get all selected Pokemon
554 555 |
# File 'docs/4_Systems_200_Storage.rb', line 554 def all_selected_pokemon end |
#all_selected_pokemon_in_party ⇒ Array<PFM::Pokemon>
Get all selected Pokemon in party
558 559 |
# File 'docs/4_Systems_200_Storage.rb', line 558 def all_selected_pokemon_in_party end |
#box_selection_display=(box)
Define the box selection display
546 547 |
# File 'docs/4_Systems_200_Storage.rb', line 546 def box_selection_display=(box) end |
#clear
Clear the selection
542 543 |
# File 'docs/4_Systems_200_Storage.rb', line 542 def clear end |
#empty? ⇒ Boolean
Tell if all selection are empty
525 526 |
# File 'docs/4_Systems_200_Storage.rb', line 525 def empty? end |
#move_items_to_cursor ⇒ Boolean
Move the current selection of items to the current cursor
536 537 |
# File 'docs/4_Systems_200_Storage.rb', line 536 def move_items_to_cursor end |
#move_pokemon_to_cursor ⇒ Boolean
Move the current selection of pokemon to the current cursor
532 533 |
# File 'docs/4_Systems_200_Storage.rb', line 532 def move_pokemon_to_cursor end |
#party_selection_display=(party_display)
Define the party selection display
550 551 |
# File 'docs/4_Systems_200_Storage.rb', line 550 def party_selection_display=(party_display) end |
#release_selected_pokemon
Release all selected Pokemon
539 540 |
# File 'docs/4_Systems_200_Storage.rb', line 539 def release_selected_pokemon end |
#select
Select or deselect the current index
528 529 |
# File 'docs/4_Systems_200_Storage.rb', line 528 def select end |
#update_selection
Update the current selection
521 522 |
# File 'docs/4_Systems_200_Storage.rb', line 521 def update_selection end |