class Cards::Blackjack::Dealer

Defined in:

cards/blackjack/dealer.cr

Constant Summary

ACTION_DELAY = 0.69_f32
CARD_SPOT_Y_RATIO = 6_f32
DONE_DELAY = 1.69_f32

Constructors

Instance Method Summary

Instance methods inherited from class Cards::Blackjack::CardPlayer

action_delay action_delay, chip_tray : ChipTray chip_tray, clear_table(discard_stack : CardStack) clear_table, cleared_table? cleared_table?, current_hand current_hand, deal(card_stack : CardStack) deal, deal_delay deal_delay, dealing? dealing?, dealt? dealt?, delay(sec : Int32 | Float32) delay, delay? delay?, done(_dealer : Dealer) done, done? : Bool done?, done_delay done_delay, draw(deck : Deck, screen_x = 0, screen_y = 0) draw, draw_bets? draw_bets?, draw_hands(deck : Deck, screen_x, screen_y) draw_hands, hand_check hand_check, hands : Array(Hand) hands, hitting=(value : Bool) hitting=, hitting? hitting?, log(method, message = "") log, log_name log_name, new_hand new_hand, next_hand next_hand, next_turn next_turn, play play, played? played?, playing? playing?, seat : Seat seat, seat=(seat : Seat) seat=, splitting? splitting?, unseated? unseated?, update(frame_time) update, update_positions update_positions

Constructor methods inherited from class Cards::Blackjack::CardPlayer

new(seat : Cards::Blackjack::Seat = Seat.new, chip_tray : Cards::Blackjack::ChipTray = ChipTray.new, hands : Array(Cards::Blackjack::Hand) = [] of Hand) new

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def action_delay #

[View source]
def blackjack? #

[View source]
def bust? #

[View source]
def cards_short_name #

[View source]
def deal(card_stack : CardStack) #

[View source]
def done_delay #

[View source]
def draw_hand_display(screen_x = 0, screen_y = 0, y = seat.y) #

[View source]
def hand_display #

[View source]
def hand_value #

[View source]
def play(all_busted_or_blackjack) #

[View source]
def update(_frame_time) #

[View source]