Class: UI::Storage::SelectionHandler

Inherits:
Object
  • Object
show all
Defined in:
docs/4_Systems_200_Storage.rb

Overview

Class responsive of handling the selection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mode_handler) ⇒ SelectionHandler

Create a new selection handler

Parameters:

  • mode_handler (ModeHandler)

    object responsive of handling the mode



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

Returns:



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

Returns:



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

Returns:



509
510
511
# File 'docs/4_Systems_200_Storage.rb', line 509

def storage=(value)
  @storage = value
end

Instance Method Details

#all_selected_pokemonArray<PFM::Pokemon>

Get all selected Pokemon

Returns:



554
555
# File 'docs/4_Systems_200_Storage.rb', line 554

def all_selected_pokemon
end

#all_selected_pokemon_in_partyArray<PFM::Pokemon>

Get all selected Pokemon in party

Returns:



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

Parameters:



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

Returns:

  • (Boolean)


525
526
# File 'docs/4_Systems_200_Storage.rb', line 525

def empty?
end

#move_items_to_cursorBoolean

Move the current selection of items to the current cursor

Returns:

  • (Boolean)

    if the operation was a success



536
537
# File 'docs/4_Systems_200_Storage.rb', line 536

def move_items_to_cursor
end

#move_pokemon_to_cursorBoolean

Move the current selection of pokemon to the current cursor

Returns:

  • (Boolean)

    if the operation was a success



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

Parameters:



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