Class: GamePlay::Hall_of_Fame
- Inherits:
-
BaseCleanUpdate
- Object
- Base
- BaseCleanUpdate
- GamePlay::Hall_of_Fame
- Includes:
- UI::Hall_of_Fame
- Defined in:
- docs/4_Systems_300_Hall_of_fame.rb
Overview
Class that manages the Hall of Fame scene
Constant Summary collapse
- DEFAULT_BGM =
The default BGM to play
'audio/bgm/Hall-of-Fame'
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
Attributes inherited from Base
#__last_scene, #__result_process, #clock, #running, #viewport
Attributes included from DisplayMessage
Instance Method Summary collapse
-
#create_background
Create the background.
-
#create_congratulation_text_boxes
Create the congratulations boxes that are displayed during phase 1.
-
#create_end_stars
Create the final stars animation that is displayed after phase 3.
-
#create_graphics
Create the graphics for the UI.
-
#create_graveyard_anim
Create the stack that contains everything needed for phase 2 animation.
-
#create_league_champion_text_box
Create the box containing the league champion text displayed during phase 3.
-
#create_party_battler_stack
Create the stack containing every battlers displayed during phase 3.
-
#create_pokemon_battler_stack
Create the stack containing the Pokemon's battler that is displayed during phase 1.
-
#create_pokemon_stars_animation
Create the stars animation that is displayed during phase 1.
-
#create_pokemon_text_boxes
Create the boxes containing the text about the Pokemon that are displayed during phase 1.
-
#create_trainer_infos_text_box
Create the box containing the trainer texts displayed during phase 3.
-
#create_turning_ball
Create the turning ball that is displayed during phase 3.
-
#create_type_background
Create the type background that is displayed during phase 1.
-
#initialize(filename_bgm = DEFAULT_BGM, context_of_victory = :league) ⇒ Hall_of_Fame
constructor
Initialize the scene.
-
#launch_animation(animation)
Launch the given animation.
-
#parallel_animating
Update some parallel animation if the context demand it.
-
#pkm_cry_filename ⇒ String?
Get the cry's filename of the Pokemon at index equal to @anim_count.
-
#play_music
Play the music, nothing else.
-
#update_end_stars_anim
Update the final stars animation after phase 3.
-
#update_graphics
Launch each phase of the animation then update the looping animations.
-
#update_inputs
Update the inputs only at the end of the animation.
-
#update_pokemon_stars_animation
Update the stars animation (only during phase 1, updated by launch_animation).
-
#update_turning_ball
Update the turning ball animation during phase 3 and after.
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
clear, close_virtual_keyboard, dir4, dir8, get_text, joy_axis_position, load_touch_screen, open_virtual_keyboard, 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(filename_bgm = DEFAULT_BGM, context_of_victory = :league) ⇒ Hall_of_Fame
Initialize the scene
399 400 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 399 def initialize(filename_bgm = DEFAULT_BGM, context_of_victory = :league) end |
Instance Method Details
#create_background
Create the background
416 417 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 416 def create_background end |
#create_congratulation_text_boxes
Create the congratulations boxes that are displayed during phase 1
434 435 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 434 def create_congratulation_text_boxes end |
#create_end_stars
Create the final stars animation that is displayed after phase 3
455 456 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 455 def create_end_stars end |
#create_graphics
Create the graphics for the UI
410 411 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 410 def create_graphics end |
#create_graveyard_anim
Create the stack that contains everything needed for phase 2 animation
437 438 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 437 def create_graveyard_anim end |
#create_league_champion_text_box
Create the box containing the league champion text displayed during phase 3
449 450 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 449 def create_league_champion_text_box end |
#create_party_battler_stack
Create the stack containing every battlers displayed during phase 3
446 447 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 446 def create_party_battler_stack end |
#create_pokemon_battler_stack
Create the stack containing the Pokemon's battler that is displayed during phase 1
422 423 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 422 def create_pokemon_battler_stack end |
#create_pokemon_stars_animation
Create the stars animation that is displayed during phase 1
425 426 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 425 def create_pokemon_stars_animation end |
#create_pokemon_text_boxes
Create the boxes containing the text about the Pokemon that are displayed during phase 1
431 432 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 431 def create_pokemon_text_boxes end |
#create_trainer_infos_text_box
Create the box containing the trainer texts displayed during phase 3
452 453 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 452 def create_trainer_infos_text_box end |
#create_turning_ball
Create the turning ball that is displayed during phase 3
440 441 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 440 def create_turning_ball end |
#create_type_background
Create the type background that is displayed during phase 1
419 420 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 419 def create_type_background end |
#launch_animation(animation)
Launch the given animation
462 463 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 462 def launch_animation(animation) end |
#parallel_animating
Update some parallel animation if the context demand it
465 466 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 465 def parallel_animating end |
#pkm_cry_filename ⇒ String?
Get the cry's filename of the Pokemon at index equal to @anim_count
406 407 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 406 def pkm_cry_filename end |
#play_music
Play the music, nothing else
402 403 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 402 def play_music end |
#update_end_stars_anim
Update the final stars animation after phase 3
458 459 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 458 def update_end_stars_anim end |
#update_graphics
Launch each phase of the animation then update the looping animations
413 414 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 413 def update_graphics end |
#update_inputs
Update the inputs only at the end of the animation
534 535 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 534 def update_inputs end |
#update_pokemon_stars_animation
Update the stars animation (only during phase 1, updated by launch_animation)
428 429 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 428 def update_pokemon_stars_animation end |
#update_turning_ball
Update the turning ball animation during phase 3 and after
443 444 |
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 443 def update_turning_ball end |