Class: UI::Casino::BandDisplay
- Inherits:
-
Sprite
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- UI::Casino::BandDisplay
- Defined in:
- docs/4_Systems_900_Games.rb
Overview
Object showing image that should be aligned
Constant Summary collapse
- FILES =
List of files that shows the images of the band
['casino/v1', 'casino/v2', 'casino/v3', 'casino/v4', 'casino/v5', 'casino/v6', 'casino/v7']
- @@loaded_images =
[]
Instance Attribute Summary collapse
-
#animation_speed ⇒ Integer
Animation speed of the band.
-
#band ⇒ Array<Integer>
readonly
Band information.
-
#locked ⇒ Boolean
Tell if the band is locked or not.
Attributes inherited from LiteRGSS::ShaderedSprite
Attributes inherited from LiteRGSS::Sprite
#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y
Class Method Summary collapse
-
.dispose_images
Dispose all the loaded images.
Instance Method Summary collapse
-
#done? ⇒ Boolean
Tell if the animation is done.
-
#initialize(viewport, x, y, band, speed) ⇒ BandDisplay
constructor
Create a new BandDisplay.
-
#update
Update the animation.
-
#value(row = 1) ⇒ Integer
Get the current value of the image shown by the band.
Methods inherited from Sprite
#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords
Methods inherited from LiteRGSS::Sprite
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport, x, y, band, speed) ⇒ BandDisplay
Create a new BandDisplay
60 61 |
# File 'docs/4_Systems_900_Games.rb', line 60 def initialize(, x, y, band, speed) end |
Instance Attribute Details
#animation_speed ⇒ Integer
Animation speed of the band
50 51 52 |
# File 'docs/4_Systems_900_Games.rb', line 50 def animation_speed @animation_speed end |
#band ⇒ Array<Integer> (readonly)
Band information
47 48 49 |
# File 'docs/4_Systems_900_Games.rb', line 47 def band @band end |
#locked ⇒ Boolean
Tell if the band is locked or not
53 54 55 |
# File 'docs/4_Systems_900_Games.rb', line 53 def locked @locked end |
Class Method Details
.dispose_images
Dispose all the loaded images
87 88 |
# File 'docs/4_Systems_900_Games.rb', line 87 def dispose_images end |
Instance Method Details
#done? ⇒ Boolean
Tell if the animation is done
66 67 |
# File 'docs/4_Systems_900_Games.rb', line 66 def done? end |
#update
Update the animation
63 64 |
# File 'docs/4_Systems_900_Games.rb', line 63 def update end |
#value(row = 1) ⇒ Integer
Get the current value of the image shown by the band
71 72 |
# File 'docs/4_Systems_900_Games.rb', line 71 def value(row = 1) end |