class

Cards::Blackjack::CardPlayer

Inherits Reference < Object

Constants

ACTION_DELAY = 0.33_f32
DEAL_DELAY = 0.13_f32
DONE_DELAY = 1.69_f32

Constructors

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

Instance methods

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