class Cards::Blackjack::ChipTray

Defined in:

cards/blackjack/chip_tray.cr

Constant Summary

MAX_CHIPS = 10

Constructors

Instance Method Summary

Constructor Detail

def self.new(y : Float32 | Int32 = 0, balance = 0) #

[View source]

Instance Method Detail

def add(chip : Chip) #

[View source]
def add_position(chip : Chip) #

[View source]
def chip_stacks : Hash(Chip::Amount, ChipStack) #

[View source]
def chip_value #

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

[View source]
def largest(bet) : Chip | Nil #

[View source]
def selected_chip : Chip | Nil #

[View source]
def update(frame_time) #

[View source]
def update_positions(seat : Seat) #

[View source]
def update_select_chip(amount : Chip::Amount) #

[View source]