abstract class Cards::Blackjack::CardPlayer
- Cards::Blackjack::CardPlayer
- Reference
- Object
Direct Known Subclasses
Defined in:
cards/blackjack/card_player.crConstant Summary
-
ACTION_DELAY =
0.33_f32
-
DEAL_DELAY =
0.13_f32
-
DONE_DELAY =
1.69_f32
Constructors
Instance Method Summary
- #action_delay
- #chip_tray : ChipTray
- #clear_table(discard_stack : CardStack)
- #cleared_table?
- #current_hand
- #deal(card_stack : CardStack)
- #deal_delay
- #dealing?
- #dealt?
- #delay(sec : Int32 | Float32)
- #delay?
- #done(_dealer : Dealer)
- #done? : Bool
- #done_delay
- #draw(deck : Deck, screen_x = 0, screen_y = 0)
- #draw_bets?
- #draw_hands(deck : Deck, screen_x, screen_y)
- #hand_check
- #hands : Array(Hand)
- #hitting=(value : Bool)
- #hitting?
- #log(method, message = "")
- #log_name
- #new_hand
- #next_hand
- #next_turn
- #play
- #played?
- #playing?
- #seat : Seat
- #seat=(seat : Seat)
- #splitting?
- #unseated?
- #update(frame_time)
- #update_positions
Constructor Detail
def self.new(seat : Cards::Blackjack::Seat = Seat.new, chip_tray : Cards::Blackjack::ChipTray = ChipTray.new, hands : Array(Cards::Blackjack::Hand) = [] of Hand)
#