Class: GamePlay::PokemonStorage

Inherits:
BaseCleanUpdate show all
Includes:
Util::GiveTakeItem
Defined in:
docs/4_Systems_200_Storage.rb

Overview

Storage scene

Direct Known Subclasses

PokemonTradeStorage

Constant Summary collapse

BASE_UI_KEYS =

List of keys supported by the base UI depending on the mode

regular = %i[A X Y B], regular, %i[A L R B], regular, regular, regular, %i[A LEFT RIGHT B], regular
BASE_UI_TEXTS =

List of texts shown by the base UI depending on the mode

[regular = [[:ext_text, 9007, 14], [:get_text, nil], [:ext_text, 9007, 16], [:ext_text, 9007, 15]], regular, [[:ext_text, 9007, 14], [:ext_text, 9007, 18], [:ext_text, 9007, 19], [:ext_text, 9007, 15]], [[:ext_text, 9007, 14], [:ext_text, 9007, 23], [:ext_text, 9007, 16], [:ext_text, 9007, 20]], [[:ext_text, 9007, 14], [:get_text, nil], [:ext_text, 9007, 16], [:ext_text, 9007, 20]], [[:ext_text, 9007, 17], [:get_text, nil], [:ext_text, 9007, 16], [:ext_text, 9007, 20]], [[:ext_text, 9007, 21], [:ext_text, 9007, 18], [:ext_text, 9007, 19], [:ext_text, 9007, 15]], [[:get_text, nil], [:get_text, nil], [:get_text, nil], [:ext_text, 9007, 22]]]
MODE_TO_BASE_UI_MODE =

Hash describing which mode to choose in the base UI when we’re in detailed mode

{pokemon: 0, item: 1, battle: 2}
SELECTION_MODE_ACTIONS =

List of Action depending on the selection mode

{detailed: :action_a_detailed, fast: :action_a_fast, grouped: :action_a_grouped}
AIU_KEY2METHOD =

List of method called by automatic_input_update when pressing on a key

{A: :action_a, B: :action_b, X: :action_x, Y: :action_y, L: :action_l, R: :action_r, L2: :action_l2, R2: :action_r2, LEFT: :action_left, RIGHT: :action_right, UP: :action_up, DOWN: :action_down}
CHOICE_BOX_OPTIONS =

List of options shown when choosing the box option

[[:text_get, 33, 45], [:text_get, 33, 44], [:ext_text, 9007, 3], [:text_get, 33, 38]]
MESSAGE_BOX_OPTIONS =

Message shown when choosing the box option

[:ext_text, 9007, 0]
SINGLE_POKEMON_CHOICE =

“What to do with %<box>s?” List of options shown when choosing something for a single pokemon

[[:text_get, 33, 39], [:text_get, 33, 41], [:text_get, 33, 80], [:text_get, 33, 79], [:text_get, 33, 42], [:text_get, 33, 81]]
SINGLE_POKEMON_MESSAGE =

Message shown when manipulating a single Pokemon

[:ext_text, 9007, 1]
SELECTED_POKEMON_MESSAGE =

“What to do with %<name>s?” Message shown when we manipulate various Pokemon

[:ext_text, 9007, 2]
BOX_NAME_MESSAGE =

Message shown when we want to rename a box

[:ext_text, 9007, 4]
BOX_THEME_CHOICE_MESSAGE =

Message shown when choosing the theme

[:ext_text, 9007, 5]
BOX_NEW_NAME_MESSAGE =

Message shown when we want to give a name to the new box

[:ext_text, 9007, 6]
BOX_NEW_DEFAULT_NAME =

New box name

[:ext_text, 9007, 7]
REMOVE_BOX_MESSAGE =

Message shown to confirm if we want to remove the box

[:ext_text, 9007, 8]
REMOVE_BOX_CHOICES =

Choice option for remove box confirmation

[[:text_get, 33, 84], [:text_get, 33, 83]]
MOVE_POKEMON_MESSAGE =

Message shown when we want to move a Pokemon

[:ext_text, 9007, 9]
MOVE_SELECTED_POKEMON_MESSAGE =

Message shown when we want to move several Pokemon

[:ext_text, 9007, 10]
RELEASE_POKEMON_MESSAGE1 =

Message shown when we try to release a Pokemon

[:ext_text, 9007, 11]
RELEASE_POKEMON_CHOICES =

Choice option for release pokemon confirmation

[[:text_get, 33, 84], [:text_get, 33, 83]]
RELEASE_SELECTED_POKEMON_MESSAGE =

Message shown when we try to release several Pokemon

[:ext_text, 9007, 12]

Constants inherited from Base

Base::DEFAULT_TRANSITION, Base::DEFAULT_TRANSITION_PARAMETER

Constants included from Input

Input::ALIAS_KEYS, Input::AXIS_MAPPING, Input::AXIS_SENSITIVITY, Input::DEAD_ZONE, Input::Keyboard, Input::Keys, Input::NON_TRIGGER_ZONE, Input::REPEAT_COOLDOWN, Input::REPEAT_SPACE

Constants included from DisplayMessage

DisplayMessage::MESSAGE_ERROR, DisplayMessage::MESSAGE_PROCESS_ERROR

Instance Attribute Summary

Attributes inherited from Base

#__last_scene, #__result_process, #running, #viewport

Attributes included from DisplayMessage

#message_window

Instance Method Summary collapse

Methods included from Util::GiveTakeItem

#givetake_give_egg_message, #givetake_give_item, #givetake_give_item_message, #givetake_give_item_update_state, #givetake_take_item

Methods inherited from BaseCleanUpdate

#automatic_input_update, #update

Methods inherited from Base

#add_disposable, #call_scene, #dispose, #find_parent, #main, #return_to_scene, #snap_to_bitmap, #update, #visible, #visible=

Methods included from Input

dir4, dir8, get_text, joy_axis_position, press?, register_events, released?, repeat?, swap_states, trigger?

Methods included from DisplayMessage

#can_display_message_be_called?, #close_message_window, #display_message, #display_message_and_wait, #message_class, #message_processing?, #message_visible, #message_visible=

Constructor Details

#initialize(storage = $storage, party = $actors) ⇒ PokemonStorage

Create a new Storage Scene

Parameters:

  • storage (PFM::Storage) (defaults to: $storage)

    the current storage object

  • party (Array<PFM::Pokemon>) (defaults to: $actors)


921
922
# File 'docs/4_Systems_200_Storage.rb', line 921

def initialize(storage = $storage, party = $actors)
end

Instance Method Details

#refresh

Refresh everything in the UI



939
940
# File 'docs/4_Systems_200_Storage.rb', line 939

def refresh
end

#update_graphics

Update the graphics of the Storage scene



924
925
# File 'docs/4_Systems_200_Storage.rb', line 924

def update_graphics
end

#update_inputs

Update the input of the scene



975
976
# File 'docs/4_Systems_200_Storage.rb', line 975

def update_inputs
end

#update_mouse(moved)

Update the mouse action



1028
1029
# File 'docs/4_Systems_200_Storage.rb', line 1028

def update_mouse(moved)
end