Class: GamePlay::MoveTeaching
- Inherits:
-
BaseCleanUpdate::FrameBalanced
- Object
- Base
- BaseCleanUpdate
- BaseCleanUpdate::FrameBalanced
- GamePlay::MoveTeaching
- Includes:
- MoveTeachingMixin, UI::MoveTeaching
- Defined in:
- docs/4_Systems_301_MoveTeaching.rb
Overview
Scene responsive of teaching a move to a Pokemon
How to call it ?
This scene has a return parameter called `learnt` telling wether the move has been learnt or not.
You might use call_scene like this for this Scene:
call_scene(GamePlay::MoveTeaching, pokemon, move_id) { |scene| do something with scene.learnt }
Constant Summary collapse
- AIU_KEY2METHOD =
List of methds associated to the inputs
{UP: :action_up, DOWN: :action_down, LEFT: :action_left, RIGHT: :action_right, A: :action_a, B: :action_b}
- CHOICE_TEXTS =
Actions of the scene Array containing the Yes No texts of a choice
[[23, 85], [23, 86]]
- LEARNING_TEXTS =
Array containing the texts of the scene
[[22, 99], [22, 100], [22, 101], [22, 102], [22, 103], [22, 106], [11, 313]]
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 included from MoveTeachingMixin
Attributes inherited from Base
#__last_scene, #__result_process, #running, #viewport
Attributes included from DisplayMessage
Instance Method Summary collapse
-
#create_graphics
Create the differents graphics of the UI.
-
#initialize(pokemon, skill_id) ⇒ MoveTeaching
constructor
Create a new Skill Learn scene param pokemon [PFM::Pokemon] param skill [Integer] or [Symbol].
-
#ui_visibility=(visible)
Set the visibility ON.
-
#update_graphics
Update the graphics every frame.
-
#update_inputs
Update inputs every frame.
-
#update_mouse(moved)
Function responsive of updating 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, skill_id) ⇒ MoveTeaching
Create a new Skill Learn scene param pokemon [PFM::Pokemon] param skill [Integer] or [Symbol]
224 225 |
# File 'docs/4_Systems_301_MoveTeaching.rb', line 224 def initialize(pokemon, skill_id) end |
Instance Method Details
#create_graphics
Create the differents graphics of the UI
231 232 |
# File 'docs/4_Systems_301_MoveTeaching.rb', line 231 def create_graphics end |
#ui_visibility=(visible)
Set the visibility ON
234 235 |
# File 'docs/4_Systems_301_MoveTeaching.rb', line 234 def ui_visibility=(visible) end |
#update_graphics
Update the graphics every frame
228 229 |
# File 'docs/4_Systems_301_MoveTeaching.rb', line 228 def update_graphics end |
#update_inputs
Update inputs every frame
262 263 |
# File 'docs/4_Systems_301_MoveTeaching.rb', line 262 def update_inputs end |
#update_mouse(moved)
Function responsive of updating the mouse
339 340 |
# File 'docs/4_Systems_301_MoveTeaching.rb', line 339 def update_mouse(moved) end |