Class: GamePlay::Summary
- Inherits:
-
BaseCleanUpdate::FrameBalanced
- Object
- Base
- BaseCleanUpdate
- BaseCleanUpdate::FrameBalanced
- GamePlay::Summary
- Defined in:
- scripts/01450 Systems/00102 Party/00003 GamePlay/00200 Summary.rb,
scripts/01450 Systems/00102 Party/00003 GamePlay/00202 Summary_Mouse.rb,
scripts/01450 Systems/00102 Party/00003 GamePlay/00201 Summary_update.rb
Overview
Scene displaying the Summary of a Pokemon
Direct Known Subclasses
Constant Summary collapse
- LAST_STATE =
Returns Last state index in this scene.
2
- KEYS =
Array of Key to press
[ %i[DOWN LEFT RIGHT B], %i[DOWN LEFT RIGHT B], %i[A LEFT RIGHT B], %i[A LEFT RIGHT B], %i[A LEFT RIGHT B], %i[A LEFT RIGHT B]
- TEXT_INDEXES =
Text base indexes in the file
[ [112, 113, 114, 115], [112, 116, 113, 115], [117, 114, 116, 115], [118, nil, nil, 13], [119, nil, nil, 13], [nil, nil, nil, 13] ]
- ACTIONS =
Actions to do on the button according to the actual ID state of the buttons
[ %i[mouse_next mouse_left mouse_right mouse_quit], %i[mouse_next mouse_left mouse_right mouse_quit], %i[mouse_a mouse_left mouse_right mouse_quit], %i[mouse_a object_id object_id mouse_cancel], %i[mouse_a object_id object_id mouse_cancel], %i[object_id object_id object_id mouse_quit]
- TRANSLATED_MOUSE_COORD_DETECTION =
List of the translated coordinates that gives a new move index
[ [x02 = 8..21, y01 = 18..23], [x13 = 24..37, y01], [x02, y23 = 25..30], [x13, y23] ]
Constants inherited from BaseCleanUpdate
BaseCleanUpdate::AIU_KEY2METHOD
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 collapse
-
#skill_selected ⇒ Integer
Index of the choosen skill of the Pokemon.
Attributes inherited from Base
#__last_scene, #__result_process, #running, #viewport
Attributes included from DisplayMessage
Instance Method Summary collapse
-
#initialize(pokemon, mode = :view, party = [pokemon], extend_data = nil) ⇒ Summary
constructor
Create a new sumarry Interface.
-
#update_graphics
Update the graphics.
-
#update_inputs
Update the input interactions.
-
#update_mouse(_moved)
Update the mouse.
Methods inherited from BaseCleanUpdate::FrameBalanced
Methods included from Graphics::FPSBalancer::Marker
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(pokemon, mode = :view, party = [pokemon], extend_data = nil) ⇒ Summary
Create a new sumarry Interface
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00200 Summary.rb', line 31 def initialize(pokemon, mode = :view, party = [pokemon], extend_data = nil) super() # @type [PFM::Pokemon] @pokemon = pokemon @mode = mode @party = party @index = mode == :skill ? 2 : 0 @party_index = party.index(pokemon).to_i @skill_selected = -1 @skill_index = -1 @selecting_move = false @extend_data = extend_data end |
Instance Attribute Details
#skill_selected ⇒ Integer
Returns Index of the choosen skill of the Pokemon.
25 26 27 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00200 Summary.rb', line 25 def skill_selected @skill_selected end |
Instance Method Details
#update_graphics
Update the graphics
12 13 14 15 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00201 Summary_update.rb', line 12 def update_graphics @base_ui.update_background_animation @top.update_graphics end |
#update_inputs
Update the input interactions
4 5 6 7 8 9 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00201 Summary_update.rb', line 4 def update_inputs return update_inputs_skill if @mode == :skill return update_inputs_view if @mode == :view @running = false if Input.trigger?(:B) return true end |
#update_mouse(_moved)
Update the mouse
19 20 21 22 |
# File 'scripts/01450 Systems/00102 Party/00003 GamePlay/00201 Summary_update.rb', line 19 def update_mouse(_moved) update_mouse_ctrl end |