Class: GamePlay::Casino::SlotMachine
- Inherits:
-
BaseCleanUpdate::FrameBalanced
- Object
- Base
- BaseCleanUpdate
- BaseCleanUpdate::FrameBalanced
- GamePlay::Casino::SlotMachine
- Includes:
- UI::Casino
- Defined in:
- docs/4_Systems_900_Games.rb
Overview
Scene of the Slot Machines
Constant Summary collapse
- PAYOUT_VALUES =
PAYOUT associated to each values
{1 => 3, 2 => 300, 6 => 300, 3 => 12, 4 => 6}
- ACTIONS =
Actions for the mouse
%i[action_b action_b action_b action_b]
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, #running, #viewport
Attributes included from DisplayMessage
Instance Method Summary collapse
-
#initialize(speed) ⇒ SlotMachine
constructor
Create a new SlotMachine Scene.
-
#player_coin ⇒ Integer
Amount of coin the player has.
-
#player_coin=(coins)
Set the number of coin the player has.
-
#update_graphics
Update the graphics of the slot machines.
-
#update_inputs
Update the inputs of the slot machines.
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(speed) ⇒ SlotMachine
Create a new SlotMachine Scene
288 289 |
# File 'docs/4_Systems_900_Games.rb', line 288 def initialize(speed) end |
Instance Method Details
#player_coin ⇒ Integer
Amount of coin the player has
298 299 |
# File 'docs/4_Systems_900_Games.rb', line 298 def player_coin end |
#player_coin=(coins)
Set the number of coin the player has
302 303 |
# File 'docs/4_Systems_900_Games.rb', line 302 def player_coin=(coins) end |
#update_graphics
Update the graphics of the slot machines
294 295 |
# File 'docs/4_Systems_900_Games.rb', line 294 def update_graphics end |
#update_inputs
Update the inputs of the slot machines
291 292 |
# File 'docs/4_Systems_900_Games.rb', line 291 def update_inputs end |