Class: GamePlay::Shop
- Inherits:
-
BaseCleanUpdate::FrameBalanced
- Object
- Base
- BaseCleanUpdate
- BaseCleanUpdate::FrameBalanced
- GamePlay::Shop
- Includes:
- UI::Shop
- Defined in:
- docs/4_Systems_203_Shop.rb
Overview
Shop scene
Direct Known Subclasses
Constant Summary collapse
- MOUSE_OVER_ENABLED =
Tell if the mouse over is enabled
false
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_arrow
Create the selection arrow.
-
#create_base_ui
Create the generic background for the UI.
-
#create_graphics
Create the different graphics for the UI.
-
#create_item_desc_window
Create the item description window.
-
#create_item_list
Create the item list for the items to sell.
-
#create_money_window
Create the money window showing the player money.
-
#create_scrollbar
Create the scrollbar.
-
#create_shop_banner
Create the banner spelling "shop" in different languages.
-
#initialize(symbol_or_list, price_overwrite = {}, show_background: true) ⇒ Shop
constructor
Create a new Item Shop.
-
#update_arrow
Update the selection arrow animation.
-
#update_graphics
Update the graphics every frame.
-
#update_in_stock_item(nb)
Update the number of the actual item currently in stock.
-
#update_inputs
Update the inputs every frame.
-
#update_item_button_list
Update the item list.
-
#update_item_desc
Method that calls all the informations updating method of the description window.
-
#update_item_desc_name(name)
Update the name of the item currently shown.
-
#update_item_desc_text(text)
Update the description of the item currently shown.
-
#update_money_text
Update the money the player has.
-
#update_mouse(moved) ⇒ Boolean
Update the mouse interactions.
-
#update_nb_item(nb)
Update the number of the actual item possessed by the player.
-
#update_scrollbar
Update the scrollbar's max index information.
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
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(symbol_shop) ⇒ Shop #initialize(symbol_shop, price_overwritten) ⇒ Shop #initialize(list_id_object) ⇒ Shop #initialize(list_id_object, price_overwrite) ⇒ Shop
Create a new Item Shop
475 476 |
# File 'docs/4_Systems_203_Shop.rb', line 475 def initialize(symbol_or_list, price_overwrite = {}, show_background: true) end |
Instance Method Details
#create_arrow
Create the selection arrow
518 519 |
# File 'docs/4_Systems_203_Shop.rb', line 518 def create_arrow end |
#create_base_ui
Create the generic background for the UI
500 501 |
# File 'docs/4_Systems_203_Shop.rb', line 500 def create_base_ui end |
#create_graphics
Create the different graphics for the UI
494 495 |
# File 'docs/4_Systems_203_Shop.rb', line 494 def create_graphics end |
#create_item_desc_window
Create the item description window
524 525 |
# File 'docs/4_Systems_203_Shop.rb', line 524 def create_item_desc_window end |
#create_item_list
Create the item list for the items to sell
512 513 |
# File 'docs/4_Systems_203_Shop.rb', line 512 def create_item_list end |
#create_money_window
Create the money window showing the player money
503 504 |
# File 'docs/4_Systems_203_Shop.rb', line 503 def create_money_window end |
#create_scrollbar
Create the scrollbar
542 543 |
# File 'docs/4_Systems_203_Shop.rb', line 542 def end |
#create_shop_banner
Create the banner spelling "shop" in different languages
509 510 |
# File 'docs/4_Systems_203_Shop.rb', line 509 def end |
#update_arrow
Update the selection arrow animation
521 522 |
# File 'docs/4_Systems_203_Shop.rb', line 521 def update_arrow end |
#update_graphics
Update the graphics every frame
497 498 |
# File 'docs/4_Systems_203_Shop.rb', line 497 def update_graphics end |
#update_in_stock_item(nb)
Update the number of the actual item currently in stock
539 540 |
# File 'docs/4_Systems_203_Shop.rb', line 539 def update_in_stock_item(nb) end |
#update_inputs
Update the inputs every frame
549 550 |
# File 'docs/4_Systems_203_Shop.rb', line 549 def update_inputs end |
#update_item_button_list
Update the item list
515 516 |
# File 'docs/4_Systems_203_Shop.rb', line 515 def end |
#update_item_desc
Method that calls all the informations updating method of the description window
527 528 |
# File 'docs/4_Systems_203_Shop.rb', line 527 def update_item_desc end |
#update_item_desc_name(name)
Update the name of the item currently shown
530 531 |
# File 'docs/4_Systems_203_Shop.rb', line 530 def update_item_desc_name(name) end |
#update_item_desc_text(text)
Update the description of the item currently shown
533 534 |
# File 'docs/4_Systems_203_Shop.rb', line 533 def update_item_desc_text(text) end |
#update_money_text
Update the money the player has
506 507 |
# File 'docs/4_Systems_203_Shop.rb', line 506 def update_money_text end |
#update_mouse(moved) ⇒ Boolean
Update the mouse interactions
620 621 |
# File 'docs/4_Systems_203_Shop.rb', line 620 def update_mouse(moved) end |
#update_nb_item(nb)
Update the number of the actual item possessed by the player
536 537 |
# File 'docs/4_Systems_203_Shop.rb', line 536 def update_nb_item(nb) end |
#update_scrollbar
Update the scrollbar's max index information
545 546 |
# File 'docs/4_Systems_203_Shop.rb', line 545 def end |