Class: BattleUI::PlayerChoiceSafari

Inherits:
PlayerChoice show all
Includes:
PlayerChoiceAbstraction, UI
Defined in:
docs/5_Battle_01_Scene.rb

Overview

Class that allows the player to make the choice of the action he wants to do during a Safari battle

Defined Under Namespace

Classes: ButtonSafari, SubChoiceSafari

Constant Summary

Constants inherited from PlayerChoice

BattleUI::PlayerChoice::BUTTON_COORDINATE

Constants inherited from GenericChoice

GenericChoice::CURSOR_OFFSET_X, GenericChoice::CURSOR_OFFSET_Y

Constants inherited from UI::SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

Attributes included from PlayerChoiceAbstraction

#action, #index, #result

Attributes inherited from GenericChoice

#animation_handler, #scene

Attributes inherited from UI::SpriteStack

#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

Methods included from PlayerChoiceAbstraction

#choice_bait, #choice_mud, #choice_safari_ball, #reset, #shift_pokemon, #use_item, #validated?

Methods inherited from PlayerChoice

#initialize

Methods inherited from GenericChoice

#done?, #initialize, #reset, #update

Methods included from GoingInOut

#animation_handler, #go_in, #go_out, #in?, #out?

Methods included from HideShow

#animation_handler, #hide, #show

Methods inherited from UI::SpriteStack

#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #initialize, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

This class inherits a constructor from BattleUI::PlayerChoice

Instance Method Details

#create_buttons

Create the 4 main action buttons



1643
1644
# File 'docs/5_Battle_01_Scene.rb', line 1643

def create_buttons
end

#create_sub_choice

Create the sub-choice buttons



1646
1647
# File 'docs/5_Battle_01_Scene.rb', line 1646

def create_sub_choice
end

#validate

Validate the player choice



1649
1650
# File 'docs/5_Battle_01_Scene.rb', line 1649

def validate
end