class Cards::ChipStack

Defined in:

cards/chip_stack.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(x = 0, y = 0, chips : Array(Cards::Chip) = [] of Chip, selectable : Bool = false) #

[View source]

Class Method Detail

def self.amounts : Array(ChipStack) #

[View source]
def self.height #

[View source]
def self.width #

[View source]

Instance Method Detail

def add(chip : Chip) #

[View source]
def add_position #

[View source]
def any?(*args, **options) #

[View source]
def any?(*args, **options, &) #

[View source]
def chip_value #

[View source]
def chips : Array(Chip) #

[View source]
def draw(screen_x = 0, screen_y = 0) #

[View source]
def empty?(*args, **options) #

[View source]
def empty?(*args, **options, &) #

[View source]
def height #

[View source]
def height_depth #

[View source]
def hovered? : Bool #

[View source]
def init_chip_frames #

[View source]
def position : Game::Vector #

[View source]
def selectable? : Bool #

[View source]
def selected? : Bool #

[View source]
def selected_chip #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]
def take : Chip #

[View source]
def top_y #

[View source]
def update(frame_time) #

[View source]
def update_chips_position #

[View source]
def update_last_chip_frame(chip = @chips[-1], last_index = -2) #

[View source]
def width #

[View source]
def x(*args, **options) #

[View source]
def x(*args, **options, &) #

[View source]
def x=(value : Int32 | Float32) #

[View source]
def y(*args, **options) #

[View source]
def y(*args, **options, &) #

[View source]
def y=(value : Int32 | Float32) #

[View source]