abstract class Cards::Blackjack::SeatPlayer
Direct Known Subclasses
Defined in:
cards/blackjack/seat_player.cr
Constant Summary
-
CHIP_DELAY =
0.13_f32
Constructors
Instance Method Summary
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
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(name : String =
"", seat =
Seat.new, balance =
0)
#
Instance Method Detail
def
add_chip(chip :
Chip)
#
def
betting_update(frame_time)
#
def
clearing_bet? : Bool
#
def
doubling_bet? : Bool
#
def
draw(deck :
Deck, screen_x =
0, screen_y =
0)
#
def
draw_balance(screen_x =
0, screen_y =
0)
#
def
draw_name(screen_x =
0, screen_y =
0)
#
def
hitting=(value : Bool)
#
def
leave_table? : Bool
#
def
place_bet(chip :
Chip)
#
def
placing_bet? : Bool
#
def
playing_update(_frame_time)
#