Class: GamePlay::Summary

Inherits:
BaseCleanUpdate::FrameBalanced show all
Defined in:
docs/01450_Systems_00102_Party.rb

Overview

Scene displaying the Summary of a Pokemon

Direct Known Subclasses

GTS::SummarySelect, GTS::SummaryWanted

Constant Summary collapse

LAST_STATE =

Returns Last state index in this scene.

Returns:

  • (Integer)

    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

Attributes inherited from Base

#__last_scene, #__result_process, #running, #viewport

Attributes included from DisplayMessage

#message_window

Instance Method Summary collapse

Methods inherited from BaseCleanUpdate::FrameBalanced

#update

Methods included from Graphics::FPSBalancer::Marker

#frame_balanced?

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

Parameters:

  • pokemon (PFM::Pokemon)

    Pokemon currently shown

  • mode (Symbol) (defaults to: :view)

    :view if it’s about viewing a Pokemon, :skill if it’s about choosing the skill of the Pokemon

  • party (Array<PFM::Pokemon>) (defaults to: [pokemon])

    the party (allowing to switch Pokemon)

  • extend_data (PFM::ItemDescriptor::Wrapper, nil) (defaults to: nil)

    the extend data information when we are in :skill mode



724
725
# File 'docs/01450_Systems_00102_Party.rb', line 724

def initialize(pokemon, mode = :view, party = [pokemon], extend_data = nil)
end

Instance Attribute Details

#skill_selectedInteger

Returns Index of the choosen skill of the Pokemon.

Returns:

  • (Integer)

    Index of the choosen skill of the Pokemon



718
719
720
# File 'docs/01450_Systems_00102_Party.rb', line 718

def skill_selected
  @skill_selected
end

Instance Method Details

#update_graphics

Update the graphics



764
765
# File 'docs/01450_Systems_00102_Party.rb', line 764

def update_graphics
end

#update_inputs

Update the input interactions



761
762
# File 'docs/01450_Systems_00102_Party.rb', line 761

def update_inputs
end

#update_mouse(_moved)

Update the mouse

Parameters:

  • _moved (Boolean)

    if the mouse moved during the current frame



768
769
# File 'docs/01450_Systems_00102_Party.rb', line 768

def update_mouse(_moved)
end