Class: UI::Casino::BandDisplay

Inherits:
Sprite show all
Defined in:
docs/01450_Systems_09000_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

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

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

Instance Method Summary collapse

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

#dispose, #disposed?

Constructor Details

#initialize(viewport, x, y, band, speed) ⇒ BandDisplay

Create a new BandDisplay

Parameters:

  • viewport (Viewport)
  • x (Integer)
  • y (Integer)
  • band (Array<Integer>)
  • speed (Integer)

    speed of the band



60
61
# File 'docs/01450_Systems_09000_Games.rb', line 60

def initialize(viewport, x, y, band, speed)
end

Instance Attribute Details

#animation_speedInteger

Animation speed of the band

Returns:

  • (Integer)


50
51
52
# File 'docs/01450_Systems_09000_Games.rb', line 50

def animation_speed
  @animation_speed
end

#bandArray<Integer> (readonly)

Band information

Returns:

  • (Array<Integer>)


47
48
49
# File 'docs/01450_Systems_09000_Games.rb', line 47

def band
  @band
end

#lockedBoolean

Tell if the band is locked or not

Returns:

  • (Boolean)


53
54
55
# File 'docs/01450_Systems_09000_Games.rb', line 53

def locked
  @locked
end

Class Method Details

.dispose_images

Dispose all the loaded images



87
88
# File 'docs/01450_Systems_09000_Games.rb', line 87

def dispose_images
end

Instance Method Details

#done?Boolean

Tell if the animation is done

Returns:

  • (Boolean)


66
67
# File 'docs/01450_Systems_09000_Games.rb', line 66

def done?
end

#update

Update the animation



63
64
# File 'docs/01450_Systems_09000_Games.rb', line 63

def update
end

#value(row = 1) ⇒ Integer

Get the current value of the image shown by the band

Parameters:

  • row (Integer) (defaults to: 1)

    row you want the value

Returns:

  • (Integer)


71
72
# File 'docs/01450_Systems_09000_Games.rb', line 71

def value(row = 1)
end