class

Cards::ChipStack

Inherits Reference < Object

Constructors

new(x = 0, y = 0, chips : Array(Cards::Chip) = [] of Chip, selectable : Bool = false)
Source

Class methods

amounts
Source
height
Source
width
Source

Instance methods

add(chip : Chip)
Source
add_position
Source
any?(*args, **options)
Source
any?(*args, **options, &)
Source
chip_value
Source
chips
Source
draw(screen_x = 0, screen_y = 0)
Source
empty?(*args, **options)
Source
empty?(*args, **options, &)
Source
height
Source
height_depth
Source
hovered?
Source
init_chip_frames
Source
position
Source
selectable?
Source
selected?
Source
selected_chip
Source
size(*args, **options)
Source
size(*args, **options, &)
Source
take
Source
top_y
Source
update(frame_time)
Source
update_chips_position
Source
update_last_chip_frame(chip = @chips[-1], last_index = -2)
Source
width
Source
x(*args, **options)
Source
x(*args, **options, &)
Source
x=(value : Int32 | Float32)
Source
y(*args, **options)
Source
y(*args, **options, &)
Source
y=(value : Int32 | Float32)
Source