class Cards::Blackjack::Hand
- Cards::Blackjack::Hand
- Reference
- Object
Defined in:
cards/blackjack/hand.crConstructors
Instance Method Summary
- #add_position
- #any?(*args, **options)
- #any?(*args, **options, &)
- #bet
- #blackjack
- #blackjack? : Bool
- #bust
- #bust? : Bool
- #cards : Array(Card)
- #cards_short_name
- #check
-
#chip_stack_bet : ChipStack
@log : Symbol, String, String | Nil -> Nil
- #chip_stack_bet_double : ChipStack
- #chip_stack_winnings : ChipStack
- #clear_cards(discard_stack : CardStack)
- #cleared_chips?
- #cleared_table?
- #clearing_table? : Bool
- #confirmed_bet=(confirmed_bet : Bool)
- #confirmed_bet? : Bool
- #deal(card_stack : CardStack, flip = true)
- #dealing?
- #dealt?
- #display
- #done(dealer : Dealer)
- #draw(deck : Deck, screen_x, screen_y, bets = false)
- #draw_bet(screen_x = 0, screen_y = 0)
- #draw_hand_display(screen_x = 0, screen_y = 0)
- #draw_message(screen_x = 0, screen_y = 0, y = 0)
- #empty?(*args, **options)
- #empty?(*args, **options, &)
- #hit
- #hitting=(hitting : Bool)
- #hitting? : Bool
-
#log(method, message = "")
TODO take this out, use SeatPlayer's log somehow, procs?
-
#log_name
TODO take this out, use SeatPlayer's log somehow, procs?
- #lose
- #lose?(*args, **options)
- #lose?(*args, **options, &)
- #message : String
- #paid?
- #pay_chip(chip : Chip, dealer : Dealer, player : SeatPlayer, from_dealer = false)
- #pay_dealer_chip(dealer : Dealer, player : SeatPlayer, chip_stack : ChipStack)
- #pay_player_chip(dealer : Dealer, player : SeatPlayer)
- #play_done
- #played? : Bool
- #playing=(playing : Bool)
- #playing? : Bool
- #push
- #push?(*args, **options)
- #push?(*args, **options, &)
- #settle_bet(dealer : Dealer, player : SeatPlayer)
- #settled_bet?
- #settling_bet=(settling_bet : Bool)
- #settling_bet? : Bool
- #size(*args, **options)
- #size(*args, **options, &)
- #soft_17?
- #stand
- #take : Card
- #twenty_one
- #undealt?
- #update(frame_time)
- #update_positions
- #value(cards = @cards)
- #win(payout_ratio : Int32 | Float32 = 1)
- #win?(*args, **options)
- #win?(*args, **options, &)
- #x : Int32 | Float32
- #x=(value : Int32 | Float32)
- #y : Int32 | Float32
- #y=(value : Int32 | Float32)
Constructor Detail
def self.new(x : Float32 | Int32 = 0, y : Float32 | Int32 = 0, cards : Array(Cards::Card) = [] of Card)
#